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 b441398 commit 8bbaf40Copy full SHA for 8bbaf40
1 file changed
.github/workflows/publish-npm.yml
@@ -0,0 +1,28 @@
1
+name: Publish to NPM
2
+
3
+on:
4
+ release:
5
+ types: [published]
6
+ workflow_dispatch:
7
8
+jobs:
9
+ publish:
10
+ runs-on: ubuntu-latest
11
+ permissions:
12
+ contents: read
13
+ id-token: write
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ - uses: actions/setup-node@v4
17
+ with:
18
+ node-version: '20.x'
19
+ registry-url: 'https://registry.npmjs.org'
20
21
+ - name: Install dependencies
22
+ run: npm ci
23
24
+ - name: Publish to NPM
25
+ run: npm publish --access public --provenance --tag beta
26
+ continue-on-error: true
27
+ env:
28
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments