Skip to content

Commit d424883

Browse files
committed
chore: modernize GitHub Actions and Node for site build
1 parent b3d600b commit d424883

3 files changed

Lines changed: 22 additions & 11 deletions

File tree

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: "/"
5+
schedule:
6+
interval: weekly
7+
- package-ecosystem: npm
8+
directory: "/"
9+
schedule:
10+
interval: weekly

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ jobs:
1111
name: Build
1212
runs-on: ubuntu-latest
1313
steps:
14+
- uses: actions/checkout@v7
1415
- name: Use Node
15-
uses: actions/setup-node@v1
16+
uses: actions/setup-node@v7
1617
with:
17-
node-version: '14.x'
18-
- uses: actions/checkout@v2
18+
node-version: '18'
19+
cache: yarn
1920
- name: Install NPM dependencies
2021
run: |
21-
yarn install
22+
yarn install --frozen-lockfile
2223
yarn global add asciidoctor@^2.2.4
2324
- name: Build site
2425
run: |
2526
yarn adoc make
26-

.github/workflows/deploy.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,21 @@ jobs:
3030
name: production
3131
url: https://www.interscript.org
3232
steps:
33+
- uses: actions/checkout@v7
3334
- name: Use Node
34-
uses: actions/setup-node@v1
35+
uses: actions/setup-node@v7
3536
with:
36-
node-version: '14.x'
37-
- uses: actions/checkout@v2
37+
node-version: '18'
38+
cache: yarn
3839
- name: Install NPM dependencies
3940
run: |
40-
yarn install
41+
yarn install --frozen-lockfile
4142
yarn global add asciidoctor@^2.2.4
4243
- name: Build site
4344
run: |
4445
yarn adoc make
4546
- name: Upload artifact
46-
uses: actions/upload-pages-artifact@v2
47+
uses: actions/upload-pages-artifact@v5
4748
with:
4849
path: dist
4950

@@ -58,4 +59,4 @@ jobs:
5859
steps:
5960
- name: Deploy to GitHub Pages
6061
id: deployment
61-
uses: actions/deploy-pages@v2
62+
uses: actions/deploy-pages@v5

0 commit comments

Comments
 (0)