File tree 1 file changed +13
-10
lines changed
1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -11,30 +11,33 @@ jobs:
11
11
runs-on : ubuntu-latest
12
12
steps :
13
13
- name : Checkout
14
- uses : actions/checkout@v2
15
- with :
16
- token : ${{ secrets.REPO_ACCESS }}
14
+ uses : actions/checkout@v4
17
15
18
16
- name : Setup
19
- uses : actions/setup-node@v2
17
+ uses : actions/setup-node@v4
20
18
with :
21
- node-version : ' 14'
19
+ node-version : ' 20'
20
+ cache : yarn
21
+ env :
22
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
22
23
23
- - name : Install
24
- run : npm install
24
+ - name : Install dependencies
25
+ run : yarn install --prefer-offline
25
26
env :
26
27
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
27
28
28
29
- name : Build
29
30
continue-on-error : false
30
- run : npm run-script build
31
+ run : yarn build
31
32
env :
32
33
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
33
34
34
35
- name : Publish
35
36
if : github.event_name == 'push'
36
- uses : peaceiris/actions-gh-pages@v3
37
+ uses : peaceiris/actions-gh-pages@v4
37
38
with :
38
39
github_token : ${{ secrets.GITHUB_TOKEN }}
40
+ personal_token : ${{ secrets.PERSONAL_TOKEN }}
41
+ external_repository : adamgraham/adamgraham.github.io
42
+ publish_branch : master
39
43
publish_dir : public
40
- publish_branch : public
You can’t perform that action at this time.
0 commit comments