Skip to content

Commit ad576bb

Browse files
authored
Enable build with provenance for nightly (#6890)
## Summary This PR configures build and publishes with provenance for nightly package build on npm as described in [Generating provenance statements](https://docs.npmjs.com/generating-provenance-statements). ## Test plan See if the CI works.
1 parent cfc6d28 commit ad576bb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/npm-reanimated-package-build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ jobs:
2929
build:
3030
if: github.repository == 'software-mansion/react-native-reanimated'
3131
runs-on: ubuntu-latest
32+
permissions:
33+
contents: read
34+
id-token: write
3235
env:
3336
PACKAGE_NAME: PLACEHOLDER # Will be reassigned later on.
3437
steps:
@@ -87,7 +90,7 @@ jobs:
8790
run: mv $PACKAGE_NAME ../../
8891

8992
- name: Publish npm package
90-
run: npm publish $PACKAGE_NAME --tag nightly
93+
run: npm publish $PACKAGE_NAME --tag nightly --provenance
9194
if: ${{ inputs.publish_on_npm }}
9295
env:
9396
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}

0 commit comments

Comments
 (0)