Skip to content

Commit 91f3f15

Browse files
author
Hyeokmin Kwon
committed
Edit github workflow
1 parent e3d6e2d commit 91f3f15

File tree

1 file changed

+12
-17
lines changed

1 file changed

+12
-17
lines changed

.github/workflows/docs.yml

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,16 @@ jobs:
1616
build:
1717
runs-on: ubuntu-latest
1818

19-
# CircleCI에서 node:8.12를 쓰고 있어서 호환성 위해 컨테이너로 맞춥니다.
20-
container:
21-
image: node:8.12
22-
2319
steps:
24-
- name: Install git (required in container)
25-
run: |
26-
apt-get update
27-
apt-get install -y git
28-
2920
- name: Checkout
3021
uses: actions/checkout@v4
3122

23+
- name: Setup Node.js
24+
uses: actions/setup-node@v4
25+
with:
26+
node-version: "16"
27+
cache: "npm"
28+
3229
- name: Build GitBook
3330
run: |
3431
npm install -g gitbook-cli
@@ -46,18 +43,16 @@ jobs:
4643
runs-on: ubuntu-latest
4744
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
4845

49-
container:
50-
image: node:8.12
51-
5246
steps:
53-
- name: Install git (required in container)
54-
run: |
55-
apt-get update
56-
apt-get install -y git
57-
5847
- name: Checkout
5948
uses: actions/checkout@v4
6049

50+
- name: Setup Node.js
51+
uses: actions/setup-node@v4
52+
with:
53+
node-version: "16"
54+
cache: "npm"
55+
6156
- name: Build GitBook
6257
run: |
6358
npm install -g gitbook-cli

0 commit comments

Comments
 (0)