Skip to content

Commit 42f0f43

Browse files
committed
Fix workflows
1 parent 33bd7a2 commit 42f0f43

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

.github/workflows/cd.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,28 @@ jobs:
1313
steps:
1414
- name: Git checkout
1515
uses: actions/checkout@v3
16+
- name: Install PNPM
17+
uses: pnpm/action-setup@v2
18+
with:
19+
version: 8
1620
- name: Install Node
1721
uses: actions/setup-node@v3
18-
- name: Install PNPM
19-
run: npm install -g pnpm
22+
with:
23+
cache: "pnpm"
2024
- name: Install dependencies
21-
run: pnpm install --frozen-lockfile=false
25+
run: pnpm install --frozen-lockfile
2226
- name: Publish
2327
id: publish
2428
uses: JS-DevTools/npm-publish@v2
2529
with:
2630
token: ${{ secrets.NPM_TOKEN }}
31+
ignore-scripts: false
2732
- if: ${{ steps.publish.outputs.type }}
2833
run: |
2934
echo "Version changed: ${{ steps.publish.outputs.old-version }} → ${{ steps.publish.outputs.version }}"
30-
- name: Deploy
31-
run: pnpm run deploy
35+
- if: ${{ !steps.publish.outputs.type }}
36+
run: |
37+
pnpm run prepublishOnly
3238
- uses: JamesIves/github-pages-deploy-action@v4
3339
with:
3440
branch: gh-pages

.github/workflows/ci.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@ jobs:
99
steps:
1010
- name: Git checkout
1111
uses: actions/checkout@v3
12+
- name: Install PNPM
13+
uses: pnpm/action-setup@v2
14+
with:
15+
version: 8
1216
- name: Install Node
1317
uses: actions/setup-node@v3
14-
- name: Install PNPM
15-
run: npm install -g pnpm
18+
with:
19+
cache: "pnpm"
1620
- name: Install and test
17-
run: pnpm install-test --frozen-lockfile=false
21+
run: pnpm install-test --frozen-lockfile

0 commit comments

Comments
 (0)