We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9385fb commit 7a1d3b2Copy full SHA for 7a1d3b2
.github/workflows/release.yaml
@@ -0,0 +1,26 @@
1
+name: Publish package to npmjs
2
+
3
+on:
4
+ release:
5
+ types: [published]
6
7
+jobs:
8
+ build:
9
+ runs-on: ubuntu-latest
10
+ permissions:
11
+ contents: read
12
+ id-token: write
13
+ steps:
14
+ - uses: actions/checkout@v4
15
16
+ # Setup .npmrc file to publish to npm
17
+ - uses: actions/setup-node@v4
18
+ with:
19
+ node-version-file: 'package.json'
20
+ registry-url: 'https://registry.npmjs.org'
21
22
+ - run: npm ci
23
24
+ - run: npm publish --provenance --access public
25
+ env:
26
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments