mirror of
https://github.com/semaphore-protocol/semaphore.git
synced 2026-01-09 14:48:12 -05:00
chore: update release workflow to auto-publish npm packages
re #698
Former-commit-id: 38d434083f
This commit is contained in:
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
@@ -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}}
|
||||
|
||||
Reference in New Issue
Block a user