Skip to content

Commit 86a9c13

Browse files
committed
Update release workflow to pnpm
1 parent 5c51e37 commit 86a9c13

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@ on:
44
push:
55
branches:
66
- main
7+
- next
78

89
permissions: {}
910
jobs:
1011
release:
1112
# prevents this action from running on forks
1213
if: github.repository == 'techniq/odata-query'
14+
1315
permissions:
1416
contents: write # to create release (changesets/action)
1517
pull-requests: write # to create pull request (changesets/action)
@@ -21,21 +23,22 @@ jobs:
2123
with:
2224
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
2325
fetch-depth: 0
24-
26+
- uses: pnpm/action-setup@v4.0.0
2527
- name: Setup Node.js
2628
uses: actions/setup-node@v4
2729
with:
2830
node-version: 20.x
31+
cache: pnpm
2932

30-
- run: npm ci
33+
- run: pnpm install --frozen-lockfile
3134

3235
- name: Create Release Pull Request or Publish to npm
3336
id: changesets
3437
uses: changesets/action@v1
3538
with:
3639
# This expects you to have a script called release which does a build for your packages and calls changeset publish
37-
publish: npm run changeset:release
38-
version: npm run changeset:version
40+
publish: pnpm changeset:release
41+
version: pnpm changeset:version
3942
env:
4043
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
44+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)