prepare workflow for release
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
name: Publish (pre)
|
||||
name: Publish (main)
|
||||
|
||||
on:
|
||||
release:
|
||||
@@ -11,7 +11,7 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 'latest'
|
||||
node-version: latest
|
||||
registry-url: https://registry.npmjs.org/
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
@@ -20,12 +20,12 @@ jobs:
|
||||
- name: Publish to npmjs
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
||||
run: npm publish --tag pre --access public
|
||||
run: npm publish --tag latest --access public
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 'latest'
|
||||
node-version: latest
|
||||
registry-url: https://npm.pkg.github.com/
|
||||
- name: Publish to GPR
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||
run: npm publish --tag pre --access public
|
||||
run: npm publish --tag latest --access public
|
||||
Reference in New Issue
Block a user