Skip to content

Commit

Permalink
Chore: 自动化任务改为 pnpm 安装
Browse files Browse the repository at this point in the history
  • Loading branch information
Lruihao committed Jan 2, 2025
1 parent 389b961 commit 9135b75
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ jobs:
# Defaults to the user or organization that owns the workflow file
# scope: '@cell-x'

- uses: pnpm/action-setup@v4
- name: Install dependencies
run: npm ci
run: pnpm install --frozen-lockfile

- name: Publish Package to npmjs
run: npm publish
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 18

- uses: pnpm/action-setup@v4
- name: Install dependencies
run: |
npm ci
npm run log -- --starting-version ${{ github.ref_name }}
pnpm install --frozen-lockfile
pnpm log --starting-version ${{ github.ref_name }}
sed -i '1,4d' CHANGELOG.md
- name: GitHub Release
uses: softprops/action-gh-release@v2
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
"license": "MIT",
"author": "Lruihao (https://lruihao.cn)",
"type": "module",
"engines": {
"node": ">=18.12.0"
},
"bin": {
"fixit-releaser": "scripts/cli.js"
},
Expand Down

0 comments on commit 9135b75

Please sign in to comment.