diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 554f95b38..4c1c52494 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -44,15 +44,14 @@ jobs: restore-keys: | ${{runner.os}}-yarn- - - run: corepack yarn install --immutable - - - run: corepack yarn pack --out corepack.tgz - - name: Publish to the npm registry - run: npm publish corepack.tgz --provenance + run: | + corepack yarn install --immutable + corepack yarn npm publish env: - NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + YARN_NPM_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + - run: corepack yarn pack --out corepack.tgz - name: Add Corepack package archive to GitHub release run: gh release upload ${{ needs.release-please.outputs.release_tag }} corepack.tgz env: