File tree 4 files changed +21
-13
lines changed
4 files changed +21
-13
lines changed Original file line number Diff line number Diff line change 4
4
branches :
5
5
- main
6
6
jobs :
7
- build-lint :
7
+ build_lint :
8
8
name : Build and lint
9
9
runs-on : ubuntu-latest
10
10
steps :
@@ -13,20 +13,28 @@ jobs:
13
13
- name : Setup Node.js
14
14
uses : actions/setup-node@v3
15
15
with :
16
- node-version : 16.6.1
17
- - name : Setup build cache
18
- uses : actions/cache@v2
16
+ node-version : 16.18.0
17
+ - name : Cache mode modules
18
+ id : cache-npm
19
+ uses : actions/cache@v3
20
+ env :
21
+ cache-name : cache-node-modules
19
22
with :
23
+ # npm cache files are stored in `~/.npm` on Linux/macOS
20
24
path : ~/.npm
21
- key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
22
- restore-keys : ${{ runner.os }}-node-
23
- - name : Install dependencies
25
+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles("**/package-lock.json") }}
26
+ restore-keys : |
27
+ ${{ runner.os }}-build-${{ env.cache-name }}-
28
+ ${{ runner.os }}-build-
29
+ ${{ runner.os }}-
30
+ - name : Install Dependencies
31
+ if : steps.cache-node-modules.outputs.cache-hit != "true"
24
32
run : npm ci
25
33
- name : Compile TypeScript
26
34
run : npm run compile
27
35
- name : Run linter
28
36
run : npm run lint
29
- build-docker :
37
+ build_docker :
30
38
name : Build Docker image
31
39
runs-on : ubuntu-latest
32
40
steps :
41
49
- 'Dockerfile'
42
50
- 'package*.json'
43
51
- name : Build Docker image
44
- if : steps.filter.outputs.build == ' true'
52
+ if : steps.filter.outputs.build == " true"
45
53
run : docker build .
Original file line number Diff line number Diff line change 1
- 16.6.1
1
+ 16.18.0
Original file line number Diff line number Diff line change 1
- FROM node:16.6.1 -alpine3.13 AS builder
1
+ FROM node:16.18.0 -alpine3.16 AS builder
2
2
3
3
LABEL org.opencontainers.image.source="https://github.com/jef/streetmerchant"
4
4
@@ -16,7 +16,7 @@ COPY test/ test/
16
16
RUN npm run compile
17
17
RUN npm prune --production
18
18
19
- FROM node:16.6.1 -alpine3.13
19
+ FROM node:16.18.0 -alpine3.16
20
20
21
21
RUN apk add --no-cache chromium
22
22
Original file line number Diff line number Diff line change 85
85
"webpack" : " ^5.50.0"
86
86
},
87
87
"volta" : {
88
- "node" : " 16.6.1 "
88
+ "node" : " 16.18.0 "
89
89
}
90
90
}
You can’t perform that action at this time.
0 commit comments