Skip to content

Commit

Permalink
Add publish automation with provenance
Browse files Browse the repository at this point in the history
  • Loading branch information
nandi95 committed Sep 11, 2024
1 parent dee2c26 commit af8449f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Publish Package to npmjs
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@
"files": [
"dist"
],
"repository": {
"type": "git",
"url": "git+https://github.com/nandi95/vue-toastify.git"
},
"dependencies": {
"vue": "^3.0.11"
},
Expand Down

0 comments on commit af8449f

Please sign in to comment.