chore: update release workflow to auto-publish npm packages

re #698


Former-commit-id: 38d434083f
This commit is contained in:
cedoor
2024-03-13 16:36:15 +00:00
parent 541007d4a5
commit 3c993ab150
2 changed files with 24 additions and 0 deletions

View File

@@ -22,10 +22,22 @@ jobs:
with:
node-version: 20
cache: yarn
registry-url: "https://registry.npmjs.org"
- name: Authentication
run: |
echo npmAuthToken: "$NODE_AUTH_TOKEN" >> ./.yarnrc.yml
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Install dependencies
run: yarn
- name: Publish packages
run: yarn version:publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: yarn version:release
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}