1
0

prepare workflow for release

This commit is contained in:
2023-08-19 18:00:13 +02:00
parent 7a20454f79
commit 68e614b3fa

View File

@@ -1,4 +1,4 @@
name: Publish (pre) name: Publish (main)
on: on:
release: release:
@@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3
with: with:
node-version: 'latest' node-version: latest
registry-url: https://registry.npmjs.org/ registry-url: https://registry.npmjs.org/
- name: Install dependencies - name: Install dependencies
run: npm ci run: npm ci
@@ -20,12 +20,12 @@ jobs:
- name: Publish to npmjs - name: Publish to npmjs
env: env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} 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 - uses: actions/setup-node@v3
with: with:
node-version: 'latest' node-version: latest
registry-url: https://npm.pkg.github.com/ registry-url: https://npm.pkg.github.com/
- name: Publish to GPR - name: Publish to GPR
env: env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: npm publish --tag pre --access public run: npm publish --tag latest --access public