We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ada4ece commit 1d0cfc8Copy full SHA for 1d0cfc8
.github/workflows/publish.yml
@@ -0,0 +1,24 @@
1
+name: Publish package on NPM
2
+
3
+on:
4
+ push:
5
+ tags:
6
+ - v* # Any version tag
7
8
+permissions:
9
+ id-token: write # To publish on NPM with provenance and to federate tokens
10
+ contents: read # To read the package.json file
11
12
+jobs:
13
+ # Requires an approval
14
+ npm-publish:
15
+ runs-on: ubuntu-latest
16
+ environment: npm
17
+ steps:
18
+ - uses: actions/checkout@v6
19
+ - uses: actions/setup-node@v6
20
+ with:
21
+ node-version: 24
22
+ registry-url: "https://registry.npmjs.org"
23
+ - run: npm install
24
+ - run: npm publish
0 commit comments