2.4.2 to enable npm provenance (2nd try) #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Snapit with npm provenance | |
| on: | |
| issue_comment: | |
| types: | |
| - created | |
| jobs: | |
| snapit: | |
| name: Snapit | |
| if: ${{ github.event.issue.pull_request && github.event.comment.body == '/snapit' }} | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| id-token: write | |
| steps: | |
| - name: Checkout current branch | |
| uses: actions/checkout@v4 | |
| - name: Force snapshot | |
| run: | | |
| printf -- "---\n'@shopify/buy-button-js': patch\n" > snapshot.txt | |
| - name: Create snapshot version | |
| uses: Shopify/snapit@0c0d2dd62c9b0c94b7d03e1f54e72f18548e7752 # pin to a specific commit | |
| with: | |
| github_comment_included_packages: '@shopify/buy-button-js' | |
| build_script: 'yarn build' | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| NPM_CONFIG_PROVENANCE: true |