Skip to content

Commit ed109fb

Browse files
Harmeet SinghHarmeet Singh
authored andcommitted
fix the release yml
1 parent 60b6b50 commit ed109fb

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,29 @@ name: Release (npm)
22

33
on:
44
push:
5-
tags: [ 'v*.*.*' ]
5+
tags: [ 'v*.*.*' ] # push a tag like v0.0.1 to trigger
66

77
jobs:
88
publish:
99
runs-on: ubuntu-latest
1010
permissions:
1111
contents: read
12-
id-token: write
12+
id-token: write # for --provenance; remove if you don't want it
1313
steps:
1414
- uses: actions/checkout@v4
15+
1516
- uses: actions/setup-node@v4
1617
with:
1718
node-version: '20'
18-
cache: 'pnpm'
19-
cache-dependency-path: ../../pnpm-lock.yaml
2019
registry-url: 'https://registry.npmjs.org'
21-
- run: corepack enable
22-
- run: pnpm install --frozen-lockfile
23-
- run: pnpm build
20+
21+
- name: Install (pnpm via npx)
22+
run: npx -y pnpm@9 install --frozen-lockfile
23+
24+
- name: Build
25+
run: npx -y pnpm@9 build
26+
2427
- name: Publish to npm
25-
run: npm publish dist --access public
28+
run: npm publish dist --access public --provenance
2629
env:
2730
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)