Skip to content

Commit 8c9b50f

Browse files
committed
build: use newer version of npm/node
1 parent d2c0fad commit 8c9b50f

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

.github/workflows/ci_fast.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ jobs:
1616
# submodules: true # Fetch Hugo themes (true OR recursive)
1717
fetch-depth: 3 # Fetch all history for .GitInfo and .Lastmod
1818

19-
- uses: actions/setup-node@v1
19+
- uses: actions/setup-node@v2.1.5
2020
with:
2121
node-version: "14"
2222
- uses: actions/cache@v2
2323
with:
2424
path: ~/.npm
25-
key: ${{ runner.os }}-node2-${{ hashFiles('**/package-lock.json') }}
25+
key: ${{ runner.os }}-node3-${{ hashFiles('**/package-lock.json') }}
2626
restore-keys: |
27-
${{ runner.os }}-node2-
27+
${{ runner.os }}-node3-
2828
- run: npm ci
2929
- name: Lint
3030
run: npm run lint

netlify.toml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,25 @@ publish = "public"
33
command = "npm ci && hugo --gc --minify -b $DEPLOY_PRIME_URL"
44

55
[context.production.environment]
6-
HUGO_VERSION = "0.78.0"
6+
HUGO_VERSION = "0.81.0"
77
HUGO_ENV = "production"
8+
NODE_VERSION = "14.16.0"
9+
NPM_VERSION = "7.6.3"
810

911
[context.deploy-preview]
1012
command = "npm ci && hugo --gc --minify --buildDrafts --buildFuture -b $DEPLOY_PRIME_URL"
1113

1214
[context.deploy-preview.environment]
13-
HUGO_VERSION = "0.78.0"
15+
HUGO_VERSION = "0.81.0"
1416
HUGO_ENABLEGITINFO = "true"
17+
NODE_VERSION = "14.16.0"
18+
NPM_VERSION = "7.6.3"
1519

1620
[context.branch-deploy]
1721
command = "npm ci && hugo --gc --minify -b $DEPLOY_PRIME_URL"
1822

1923
[context.branch-deploy.environment]
20-
HUGO_VERSION = "0.78.0"
24+
HUGO_VERSION = "0.81.0"
2125
HUGO_ENABLEGITINFO = "true"
26+
NODE_VERSION = "14.16.0"
27+
NPM_VERSION = "7.6.3"

0 commit comments

Comments
 (0)