Skip to content

Commit

Permalink
chore(🔐): Add support for npm provenance (#2921)
Browse files Browse the repository at this point in the history
  • Loading branch information
wcandillon authored Jan 29, 2025
1 parent d80ab70 commit 9ca4df0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/build-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ on: workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
env:
WORKING_DIRECTORY: ./
INPUT_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
3 changes: 2 additions & 1 deletion packages/skia/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "@shopify/react-native-skia",
"publishConfig": {
"access": "public"
"access": "public",
"provenance": true
},
"bin": {
"setup-skia-web": "./scripts/setup-canvaskit.js"
Expand Down

0 comments on commit 9ca4df0

Please sign in to comment.