Skip to content

Commit a74dc9d

Browse files
committed
ci: fix actions
1 parent e2f7884 commit a74dc9d

File tree

1 file changed

+7
-18
lines changed

1 file changed

+7
-18
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,18 @@ concurrency:
1212

1313
jobs:
1414
deploy:
15-
runs-on: ubuntu-20.04
15+
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@v4
1818

1919
- name: Setup Node
20-
uses: actions/setup-node@v2
20+
uses: actions/setup-node@v4
2121
with:
22-
node-version: '16'
22+
node-version: '22'
23+
cache: 'npm'
2324

24-
- name: Get yarn cache
25-
id: yarn-cache
26-
run: echo "::set-output name=dir::$(yarn cache dir)"
27-
28-
- name: Cache dependencies
29-
uses: actions/cache@v2
30-
with:
31-
path: ${{ steps.yarn-cache.outputs.dir }}
32-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
33-
restore-keys: |
34-
${{ runner.os }}-yarn-
35-
36-
- run: yarn install --frozen-lockfile
37-
- run: yarn build
25+
- run: npm ci
26+
- run: npm run build
3827

3928
- name: Deploy
4029
uses: peaceiris/actions-gh-pages@v3

0 commit comments

Comments
 (0)