Skip to content

Commit

Permalink
Merge pull request #83 from embroider-build/corepack
Browse files Browse the repository at this point in the history
use corepack to manage pnpm version
  • Loading branch information
mansona authored Nov 9, 2024
2 parents dcd77c3 + 6b6e1db commit 8130632
Show file tree
Hide file tree
Showing 5 changed files with 2,530 additions and 2,003 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,11 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- uses: pnpm/action-setup@v2
with:
version: 8
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm lint

Expand All @@ -35,11 +34,10 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- uses: pnpm/action-setup@v2
with:
version: 8
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm test
5 changes: 2 additions & 3 deletions .github/workflows/plan-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,12 @@ jobs:
with:
fetch-depth: 0
ref: 'main'
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: pnpm

- uses: pnpm/action-setup@v3
with:
version: 8
- run: pnpm install --frozen-lockfile

- name: "Generate Explanation and Prep Changelogs"
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,14 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: pnpm
# This creates an .npmrc that reads the NODE_AUTH_TOKEN environment variable
registry-url: 'https://registry.npmjs.org'

- uses: pnpm/action-setup@v3
with:
version: 8

- run: pnpm install --frozen-lockfile
- name: npm publish
run: node ./dist/cli.js publish
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"scripts": {
"build": "tsc",
"lint": "eslint .",
"prepare": "npm run build",
"prepare": "pnpm run build",
"test": "vitest",
"coverage": "vitest run --coverage"
},
Expand Down Expand Up @@ -51,5 +51,6 @@
"prettier": "^3.1.0",
"typescript": "^5.2.2",
"vitest": "^2.0.2"
}
},
"packageManager": "pnpm@9.12.3+sha512.cce0f9de9c5a7c95bef944169cc5dfe8741abfb145078c0d508b868056848a87c81e626246cb60967cbd7fd29a6c062ef73ff840d96b3c86c40ac92cf4a813ee"
}
Loading

0 comments on commit 8130632

Please sign in to comment.