We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 443e023 commit 285f869Copy full SHA for 285f869
.github/workflows/release.yml
@@ -6,6 +6,7 @@ permissions: read-all
6
jobs:
7
build:
8
runs-on: ubuntu-latest
9
+ environment: GitHub Publish
10
permissions:
11
contents: read
12
id-token: write
@@ -15,10 +16,10 @@ jobs:
15
16
with:
17
node-version: "20"
18
registry-url: 'https://registry.npmjs.org'
19
+ - run: npm install -g npm@latest
20
- run: npm ci
21
- run: npm test
22
- if: ${{ github.event.release.tag_name != '' && env.NPM_PUBLISH_TAG != '' }}
23
run: npm publish --provenance --access=public --tag=${{ env.NPM_PUBLISH_TAG }}
24
env:
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
25
NPM_PUBLISH_TAG: ${{ contains(github.event.release.tag_name, '-beta.') && 'beta' || 'latest' }}
0 commit comments