Skip to content

Commit

Permalink
Enable build with provenance for nightly (#6890)
Browse files Browse the repository at this point in the history
## 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.
  • Loading branch information
tomekzaw authored Jan 13, 2025
1 parent cfc6d28 commit ad576bb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/npm-reanimated-package-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ jobs:
build:
if: github.repository == 'software-mansion/react-native-reanimated'
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
env:
PACKAGE_NAME: PLACEHOLDER # Will be reassigned later on.
steps:
Expand Down Expand Up @@ -87,7 +90,7 @@ jobs:
run: mv $PACKAGE_NAME ../../

- name: Publish npm package
run: npm publish $PACKAGE_NAME --tag nightly
run: npm publish $PACKAGE_NAME --tag nightly --provenance
if: ${{ inputs.publish_on_npm }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}

0 comments on commit ad576bb

Please sign in to comment.