diff --git a/.github/workflows/npm-release.yml b/.github/workflows/npm-release.yml index 3f476f08..6d2109a4 100644 --- a/.github/workflows/npm-release.yml +++ b/.github/workflows/npm-release.yml @@ -18,7 +18,7 @@ jobs: permissions: contents: write # to be able to publish a GitHub release pull-requests: write # to be able to comment on released pull requests - id-token: write # to enable use of OIDC for npm provenance + id-token: write # to enable OIDC trusted publishing to npm steps: - name: Checkout the repo uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 @@ -32,6 +32,7 @@ jobs: uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: node-version: "24" + registry-url: 'https://registry.npmjs.org' cache: 'pnpm' - name: Install dependencies @@ -57,13 +58,12 @@ jobs: - name: Publish to NPM if: env.changesets_found == 'true' id: changesets - uses: changesets/action@e0538e686673de0265c8a3e2904b8c76beaa43fd # v1.5.2 + uses: changesets/action@a45c4d594aa4e2c509dc14a9f2b3b67ba3780d0d # v1.9.0 with: publish: pnpm exec changeset publish env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + NPM_TOKEN: '' NPM_CONFIG_PROVENANCE: true - name: Update package.json version and reset changesets diff --git a/.github/workflows/snapit.yml b/.github/workflows/snapit.yml index 8a0b3356..062e7255 100644 --- a/.github/workflows/snapit.yml +++ b/.github/workflows/snapit.yml @@ -25,6 +25,7 @@ jobs: uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: node-version: '24' + registry-url: 'https://registry.npmjs.org' cache: 'pnpm' - name: Install dependencies @@ -34,11 +35,10 @@ jobs: run: | printf -- "---\n'@shopify/buy-button-js': patch\n" > snapshot.txt - name: Create snapshot version - uses: Shopify/snapit@0c0d2dd62c9b0c94b7d03e1f54e72f18548e7752 # pin to a specific commit + uses: Shopify/snapit@efd7ad2bbc01ba82ac9a8495eb49b3a8eed0d9b9 # v0.1.0 with: - github_comment_included_packages: '@shopify/buy-button-js' + comment_packages: '@shopify/buy-button-js' build_script: 'pnpm run build' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NPM_CONFIG_PROVENANCE: true