Skip to content

Commit 71d1401

Browse files
committed
test 5
1 parent 2140476 commit 71d1401

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ on:
77

88
jobs:
99
build-and-deploy:
10-
runs-on: ubuntu-latest
10+
runs-on: ubuntu-24.04
11+
permissions:
12+
contents: write
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
1115

1216
steps:
1317
- name: Checkout
@@ -17,6 +21,14 @@ jobs:
1721
uses: actions/setup-node@v3
1822
with:
1923
node-version: '18'
24+
25+
- name: Cache dependencies
26+
uses: actions/cache@v3
27+
with:
28+
path: ~/.npm
29+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
30+
restore-keys: |
31+
${{ runner.os }}-node-
2032
2133
- name: Install dependencies
2234
run: npm ci
@@ -28,5 +40,4 @@ jobs:
2840
uses: peaceiris/actions-gh-pages@v4
2941
with:
3042
github_token: ${{ secrets.GITHUB_TOKEN }}
31-
deploy_key: ${{ secrets.DEPLOY_TOKEN }}
3243
publish_dir: ./out

0 commit comments

Comments
 (0)