Skip to content

Commit 89bd625

Browse files
Merge pull request #120 from embroider-build/nvp/fully-move-to-pnpm
Migrate fully to pnpm
2 parents 15c25d2 + 8fb5c75 commit 89bd625

File tree

6 files changed

+19
-9754
lines changed

6 files changed

+19
-9754
lines changed

.github/actions/setup/action.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,13 @@ runs:
2626
##############
2727
# Node
2828
##############
29-
# pnpm is used by release-plan (accidentally?)
3029
- uses: pnpm/action-setup@v4
31-
with:
32-
version: 10
3330

3431
- uses: actions/setup-node@v4
3532
with:
3633
node-version: 18
37-
cache: "npm"
34+
cache: "pnpm"
3835

3936
- name: Install node dependencies
4037
shell: "bash"
41-
run: npm ci
38+
run: pnpm install --frozen-lockfile

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ jobs:
2929
run: ./build.sh
3030

3131
- name: Node Tests
32-
run: npm test
32+
run: pnpm test
3333

34-
- run: npm run lint:format:js
35-
- run: npm run lint:package
36-
- run: npm run lint:published-types
34+
- run: pnpm run lint:format:js
35+
- run: pnpm run lint:package
36+
- run: pnpm run lint:published-types

.github/workflows/plan-release.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,21 @@ jobs:
4646
# lerna-changelog can discover what's changed since the last release
4747
with:
4848
fetch-depth: 0
49+
- uses: pnpm/action-setup@v4
50+
4951
- uses: actions/setup-node@v4
5052
with:
5153
node-version: 18
52-
53-
- run: npm ci
54-
54+
cache: "pnpm"
55+
56+
- run: pnpm install --frozen-lockfile
57+
5558
- name: "Generate Explanation and Prep Changelogs"
5659
id: explanation
5760
run: |
5861
set -x
59-
60-
npx release-plan prepare --single-package=content-tag
62+
63+
pnpm exec release-plan prepare --single-package=content-tag
6164
6265
echo 'text<<EOF' >> $GITHUB_OUTPUT
6366
jq .description .release-plan.json -r >> $GITHUB_OUTPUT

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ jobs:
4848
registry-url: 'https://registry.npmjs.org'
4949
- uses: ./.github/actions/setup
5050

51-
- name: npm publish
52-
run: npx release-plan publish
51+
- name: Publish to npm
52+
run: pnpm exec release-plan publish
5353

5454
env:
5555
GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)