Skip to content

Commit 371cd45

Browse files
committed
added npm publish with provenance in package
1 parent 921d317 commit 371cd45

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/npm-publish.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish Package to npmjs
1+
name: Publish nextjs-toploader to npmjs
22
on:
33
release:
44
types: [published]
@@ -26,10 +26,12 @@ jobs:
2626
- name: Compile the Library
2727
run: yarn build-lib
2828
# Setup .npmrc file to publish to npm
29-
- uses: actions/setup-node@v4
29+
- name: Setup the node
30+
uses: actions/setup-node@v4
3031
with:
3132
node-version: '20.11.1'
3233
registry-url: 'https://registry.npmjs.org'
33-
- run: npm publish
34+
- name: Publish nextjs-toploader on npm
35+
run: npm publish --access public --provenance
3436
env:
3537
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)