Skip to content

Commit

Permalink
Merge pull request #28 from embroider-build/pnpm-version
Browse files Browse the repository at this point in the history
update pnpm version in CI
  • Loading branch information
mansona authored Jan 25, 2025
2 parents 3f6387c + 2d9cde3 commit bbdd49f
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 25 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,12 @@ jobs:
node-version: ["16", "18", "20"]

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
version: 6.12.0

node-version: ${{ matrix.node-version }}
cache: pnpm
- run: pnpm install
- run: pnpm build
- run: pnpm test
12 changes: 5 additions & 7 deletions .github/workflows/plan-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,17 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 18

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

- uses: pnpm/action-setup@v4
- run: pnpm install --frozen-lockfile

- name: "Generate Explanation and Prep Changelogs"
id: explanation
run: |
set +e
pnpm release-plan prepare 2> >(tee -a stderr.log >&2)
if [ $? -ne 0 ]; then
echo 'text<<EOF' >> $GITHUB_OUTPUT
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,12 @@ jobs:
node-version: 18
# 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

- uses: pnpm/action-setup@v4
- run: pnpm install --frozen-lockfile
- name: npm publish
run: pnpm release-plan publish

env:
GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@
"github-changelog": "bin/cli.js"
},
"scripts": {
"build": "yarn clean && tsc",
"build": "pnpm clean && tsc",
"changelog": "node ./bin/cli.js",
"clean": "rimraf lib",
"fix": "yarn lint -- --fix",
"fix": "pnpm lint -- --fix",
"lint": "eslint src --ext ts --format stylish",
"prepack": "yarn build",
"prepack": "pnpm build",
"prettier": "prettier --write 'src/**/*.ts'",
"release": "release-it",
"test": "jest",
"test-ci": "yarn build && yarn test",
"watch": "yarn build -- --watch"
"test-ci": "pnpm build && pnpm test",
"watch": "pnpm build -- --watch"
},
"prettier": {
"arrowParens": "avoid",
Expand Down Expand Up @@ -102,5 +102,6 @@
"internal": ":house: Internal"
},
"cacheDir": ".changelog"
}
},
"packageManager": "[email protected]+sha512.499434c9d8fdd1a2794ebf4552b3b25c0a633abcee5bb15e7b5de90f32f47b513aca98cd5cfd001c31f0db454bc3804edccd578501e4ca293a6816166bbd9f81"
}

0 comments on commit bbdd49f

Please sign in to comment.