Skip to content

Commit

Permalink
added npm publish with provenance in package
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSGJ committed Mar 19, 2024
1 parent 921d317 commit 371cd45
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish Package to npmjs
name: Publish nextjs-toploader to npmjs
on:
release:
types: [published]
Expand Down Expand Up @@ -26,10 +26,12 @@ jobs:
- name: Compile the Library
run: yarn build-lib
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
- name: Setup the node
uses: actions/setup-node@v4
with:
node-version: '20.11.1'
registry-url: 'https://registry.npmjs.org'
- run: npm publish
- name: Publish nextjs-toploader on npm
run: npm publish --access public --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 371cd45

Please sign in to comment.