Skip to content

Commit

Permalink
NPM Provenance
Browse files Browse the repository at this point in the history
  • Loading branch information
willemliufdmg committed Apr 21, 2023
1 parent ea58d5d commit aead217
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ env:
CI: true
jobs:
build:
permissions:
id-token: write
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -54,27 +56,27 @@ jobs:
run: npm run release:fdmg
- name: Publish NPMJS @fdmg
if: contains(github.ref, 'canary') == false
run: npm publish
run: npm publish --provenance
env:
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
continue-on-error: true
- name: Publish NPMJS @fdmg (canary)
if: contains(github.ref, 'canary')
run: npm publish --tag next
run: npm publish --provenance --tag next
env:
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
continue-on-error: true
- name: Update version and organisation scope
run: npm run release:fdmediagroep
- name: Publish NPMJS @fdmediagroep
if: contains(github.ref, 'canary') == false
run: npm publish
run: npm publish --provenance
env:
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
continue-on-error: true
- name: Publish NPMJS @fdmediagroep (canary)
if: contains(github.ref, 'canary')
run: npm publish --tag next
run: npm publish --provenance --tag next
env:
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
continue-on-error: true
Expand All @@ -88,13 +90,13 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish GPR
if: contains(github.ref, 'canary') == false
run: npm publish
run: npm publish --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
continue-on-error: true
- name: Publish GPR (canary)
if: contains(github.ref, 'canary')
run: npm publish --tag next
run: npm publish --provenance --tag next
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
continue-on-error: true
Expand Down

0 comments on commit aead217

Please sign in to comment.