Merge pull request #20 from MrSquaare/develop #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install dependencies | |
run: | | |
npm install -g \ | |
semantic-release \ | |
@semantic-release/commit-analyzer \ | |
@semantic-release/release-notes-generator \ | |
@semantic-release/changelog \ | |
@semantic-release/npm \ | |
@semantic-release/git \ | |
@semantic-release/github \ | |
conventional-changelog-conventionalcommits | |
echo "$(npm bin -g)" >> $GITHUB_PATH | |
- name: Get global node_modules path | |
id: get-global-node-modules-path | |
run: | | |
echo "::set-output name=NODE_PATH::$(npm root -g)" | |
- name: Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
NODE_PATH: ${{ steps.get-global-node-modules-path.outputs.NODE_PATH }} | |
run: npm exec --ws -- semantic-release |