Skip to content

Commit

Permalink
Merge pull request #14 from tago-io/infra/npm_provenance
Browse files Browse the repository at this point in the history
Added NPM provenance
  • Loading branch information
vitorfdl authored Jun 27, 2024
2 parents 55136a6 + e0a6510 commit 8046189
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,19 @@ jobs:
build:
name: "Build and Deploy"
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
registry-url: https://registry.npmjs.org/
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm run linter
- run: npm run test
- run: npm run build
- run: npm publish --access public
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 8046189

Please sign in to comment.