File tree Expand file tree Collapse file tree 2 files changed +18
-8
lines changed
Expand file tree Collapse file tree 2 files changed +18
-8
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments