Skip to content

Commit aefde28

Browse files
authored
chore(publish): add --provenance (#701)
1 parent 0b94797 commit aefde28

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Diff for: .github/workflows/publish.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929
needs: release-please
3030
if: ${{ needs.release-please.outputs.release_created }}
3131
runs-on: ubuntu-latest
32+
permissions:
33+
id-token: write
3234
steps:
3335
- uses: actions/checkout@v4
3436

@@ -48,10 +50,10 @@ jobs:
4850
restore-keys: |
4951
${{runner.os}}-yarn-
5052
53+
- run: corepack yarn install --immutable
54+
5155
- name: Publish to the npm registry
52-
run: |
53-
corepack yarn install --immutable
54-
corepack yarn npm publish
56+
run: corepack yarn npm publish --provenance
5557
env:
5658
YARN_NPM_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
5759

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"./package.json": "./package.json"
1717
},
1818
"license": "MIT",
19-
"packageManager": "yarn@4.6.0+sha512.5383cc12567a95f1d668fbe762dfe0075c595b4bfff433be478dbbe24e05251a8e8c3eb992a986667c1d53b6c3a9c85b8398c35a960587fbd9fa3a0915406728",
19+
"packageManager": "yarn@4.9.0+sha224.dce6c5df199861784bd9b0eecb2a228df97e3f18a02b1bb75ff98383",
2020
"devDependencies": {
2121
"@types/debug": "^4.1.5",
2222
"@types/node": "^20.4.6",

0 commit comments

Comments
 (0)