Skip to content

Commit 5a49f73

Browse files
committed
fix: workflow
1 parent a93cdcb commit 5a49f73

File tree

5 files changed

+6696
-4939
lines changed

5 files changed

+6696
-4939
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,35 +9,28 @@ jobs:
99
build:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
13-
- name: Setup node
14-
uses: actions/setup-node@v2
12+
- uses: actions/checkout@v4
13+
- uses: pnpm/action-setup@v4
1514
with:
16-
node-version: 12
17-
- name: Install Yarn
18-
run: npm i -g yarn
19-
- name: Get yarn cache directory path
20-
id: yarn-cache-dir-path
21-
run: echo "::set-output name=dir::$(yarn cache dir)"
22-
- uses: actions/cache@v1
23-
id: yarn-cache
15+
version: 10
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v4
2418
with:
25-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
26-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
27-
restore-keys: |
28-
${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
29-
- name: Install and build
19+
node-version: 20
20+
cache: 'pnpm'
21+
- name: Install dependencies
22+
run: pnpm i --frozen-lockfile
23+
- name: Build
3024
run: |
31-
yarn install --frozen-lockfile
3225
npm run build-site
3326
node ./scripts/copy-master.js
3427
- name: Deploy master
35-
uses: JamesIves/github-pages-deploy-action@4.1.4
28+
uses: JamesIves/github-pages-deploy-action@v4
3629
with:
3730
branch: master
3831
folder: dist/master
3932
- name: Deploy pages
40-
uses: JamesIves/github-pages-deploy-action@4.1.4
33+
uses: JamesIves/github-pages-deploy-action@v4
4134
with:
4235
branch: gh-pages
4336
folder: dist/pages

0 commit comments

Comments
 (0)