Skip to content

Commit fa47094

Browse files
authored
Merge pull request #4 from ember-cli/release-plan-fix
fix release-plan use with pnpm
2 parents 1e3a1f9 + 876e89a commit fa47094

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/plan-release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,17 @@ jobs:
5151
with:
5252
fetch-depth: 0
5353
ref: 'main'
54+
- uses: pnpm/action-setup@v4
5455
- uses: actions/setup-node@v4
5556
with:
5657
node-version: 18
57-
- run: npm ci
58+
cache: pnpm
59+
- run: pnpm install --frozen-lockfile
5860
- name: "Generate Explanation and Prep Changelogs"
5961
id: explanation
6062
run: |
6163
set +e
62-
npx release-plan prepare 2> >(tee -a release-plan-stderr.txt >&2)
64+
pnpm release-plan prepare 2> >(tee -a release-plan-stderr.txt >&2)
6365
6466
if [ $? -ne 0 ]; then
6567
release_plan_output=$(cat release-plan-stderr.txt)

.github/workflows/publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,16 @@ jobs:
2828

2929
steps:
3030
- uses: actions/checkout@v4
31+
- uses: pnpm/action-setup@v4
3132
- uses: actions/setup-node@v4
3233
with:
3334
node-version: 18
3435
# This creates an .npmrc that reads the NODE_AUTH_TOKEN environment variable
3536
registry-url: 'https://registry.npmjs.org'
36-
- run: npm ci
37+
cache: pnpm
38+
- run: pnpm install --frozen-lockfile
3739
- name: Publish to NPM
38-
run: npx release-plan publish --provenance
40+
run: NPM_CONFIG_PROVENANCE=true pnpm release-plan publish
3941
env:
4042
GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }}
4143
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)