Skip to content

Commit 2978fe1

Browse files
committed
ci: use pnpm
1 parent c07257e commit 2978fe1

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,21 @@ jobs:
2323
git config user.name github-actions[bot]
2424
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
2525
26-
- name: Setup Node
26+
# Install pnpm based on `packageManager` in package.json
27+
- name: Install pnpm
28+
uses: pnpm/action-setup@v4
29+
with:
30+
run_install: false
31+
32+
# Install Node.js
33+
- name: Install Node
2734
uses: actions/setup-node@v4
2835
with:
2936
node-version: "20"
3037
registry-url: "https://registry.npmjs.org"
3138

3239
- name: Bundle JSON Schemas
33-
run: npm install && npm run release
40+
run: pnpm install && pnpm run release
3441

3542
- name: Github Release
3643
uses: softprops/action-gh-release@v2
@@ -47,7 +54,7 @@ jobs:
4754
env:
4855
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4956

50-
- name: Commit and Push
57+
- name: Commit Changes
5158
run: |
52-
git commit --allow-empty -am 'Release On Tag'
59+
git commit --allow-empty -am 'ci: release ${{ github.ref_name }}'
5360
git push origin HEAD:main

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
},
2121
"license": "MIT",
2222
"repository": {
23-
"type": "git",
24-
"url": "https://github.com/dongchengjie/meta-json-schema"
23+
"url": "git+https://github.com/dongchengjie/meta-json-schema.git"
2524
},
2625
"scripts": {
2726
"preinstall": "npx only-allow pnpm",

0 commit comments

Comments
 (0)