Skip to content

Commit 1828961

Browse files
wojtekmajaduh95
andauthored
chore: publish to npm with --provenance (#520)
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 932bd4e commit 1828961

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/publish.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,15 @@ jobs:
4444
restore-keys: |
4545
${{runner.os}}-yarn-
4646
47+
- run: corepack yarn install --immutable
48+
49+
- run: corepack yarn pack --out corepack.tgz
50+
4751
- name: Publish to the npm registry
48-
run: |
49-
corepack yarn install --immutable
50-
corepack yarn npm publish
52+
run: npm publish corepack.tgz --provenance
5153
env:
52-
YARN_NPM_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
54+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
5355

54-
- run: corepack yarn pack --out corepack.tgz
5556
- name: Add Corepack package archive to GitHub release
5657
run: gh release upload ${{ needs.release-please.outputs.release_tag }} corepack.tgz
5758
env:

0 commit comments

Comments
 (0)