We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4bf8a76 commit 7552b80Copy full SHA for 7552b80
2 files changed
.github/workflows/npm-provenance.yml
@@ -0,0 +1,23 @@
1
+# https://docs.npmjs.com/generating-provenance-statements
2
+
3
+name: Publish Package to npmjs
4
+on:
5
+ release:
6
+ types: [created]
7
+jobs:
8
+ build:
9
+ runs-on: ubuntu-latest
10
+ permissions:
11
+ contents: read
12
+ id-token: write
13
+ steps:
14
+ - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
15
+ - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
16
+ with:
17
+ node-version: '20.x'
18
+ registry-url: 'https://registry.npmjs.org'
19
+ - run: npm install -g npm
20
+ - run: npm ci
21
+ - run: npm publish --provenance public
22
+ env:
23
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
.npmrc
@@ -1 +1,2 @@
package-lock=false
+provenance=true
0 commit comments