Skip to content

Commit 7bbcd38

Browse files
authored
Merge pull request #9 from DopplerHQ/mike/pnpm-publish
Fix publish workflow to use `pnpm` instead of `npm ci`
2 parents d541518 + 0793641 commit 7bbcd38

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,21 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v4
17+
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
18+
with:
19+
version: 9
1720
- uses: actions/setup-node@v4
1821
with:
1922
node-version: "24"
2023
registry-url: "https://registry.npmjs.org"
24+
cache: pnpm
2125
- name: Set version from tag
2226
run: |
2327
VERSION=${GITHUB_REF#refs/tags/v}
2428
npm pkg set version="$VERSION"
2529
npm pkg set private=false --json
26-
- run: npm ci
27-
- run: npm run build
30+
- run: pnpm install --frozen-lockfile
31+
- run: pnpm run build
2832
- name: Verify startup
2933
run: node dist/index.js --help
3034
- run: npm publish --provenance

0 commit comments

Comments
 (0)