diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f436856..4f57f18 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -29,6 +29,8 @@ jobs: needs: release-please if: ${{ needs.release-please.outputs.release_created }} runs-on: ubuntu-latest + permissions: + id-token: write steps: - uses: actions/checkout@v4 @@ -48,10 +50,10 @@ jobs: restore-keys: | ${{runner.os}}-yarn- + - run: corepack yarn install --immutable + - name: Publish to the npm registry - run: | - corepack yarn install --immutable - corepack yarn npm publish + run: corepack yarn npm publish --provenance env: YARN_NPM_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} diff --git a/package.json b/package.json index 59162a0..6d8f3dd 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "./package.json": "./package.json" }, "license": "MIT", - "packageManager": "yarn@4.6.0+sha512.5383cc12567a95f1d668fbe762dfe0075c595b4bfff433be478dbbe24e05251a8e8c3eb992a986667c1d53b6c3a9c85b8398c35a960587fbd9fa3a0915406728", + "packageManager": "yarn@4.9.0+sha224.dce6c5df199861784bd9b0eecb2a228df97e3f18a02b1bb75ff98383", "devDependencies": { "@types/debug": "^4.1.5", "@types/node": "^20.4.6",