File tree 2 files changed +11
-13
lines changed
2 files changed +11
-13
lines changed Original file line number Diff line number Diff line change 6
6
strategy :
7
7
matrix :
8
8
os :
9
- - ${{ vars.UBUNTU_VERSION }}
10
- node-version :
11
- - 12.x
12
- - 14.x
13
- - 16.x
9
+ - ubuntu-22.04
10
+ node-version : [ 18.x, 20.x ]
14
11
steps :
15
- - uses : actions/checkout@v2
12
+ - uses : actions/checkout@v4
16
13
- name : ' Install node.js ${{ matrix.node-version }}'
17
- uses : actions/setup-node@v2-beta
14
+ uses : actions/setup-node@v4
18
15
with :
19
16
node-version : ' ${{ matrix.node-version }}'
20
17
- name : Run unit tests
21
18
run : |
19
+ [[ -f ./bin/ci-setup ]] && ./bin/ci-setup
22
20
npm install
23
21
npm run ci
Original file line number Diff line number Diff line change 6
6
npm-publish :
7
7
needs : unit-tests
8
8
if : github.ref == 'refs/heads/master' && needs.unit-tests.result == 'success'
9
- runs-on : ${{ vars.UBUNTU_VERSION }}
9
+ runs-on : ubuntu-22.04
10
10
steps :
11
- - uses : actions/checkout@v2
11
+ - uses : actions/checkout@v4
12
12
- name : Install Node.js
13
- uses : actions/setup-node@v2-beta
13
+ uses : actions/setup-node@v4
14
14
with :
15
- node-version : 16 .x
15
+ node-version : 20 .x
16
16
- name : Run semantic-release
17
17
env :
18
18
GH_TOKEN : ${{ secrets.GH_SEMANTIC_RELEASE_TOKEN }}
26
26
# note: github actions won't run a job if you don't call one of the status check functions, so `always()` is called since it evalutes to `true`
27
27
if : ${{ always() && needs.unit-tests.result == 'success' && (needs.npm-publish.result == 'success' || needs.npm-publish.result == 'skipped') }}
28
28
needs : [unit-tests, npm-publish]
29
- runs-on : ${{ vars.UBUNTU_VERSION }}
29
+ runs-on : ubuntu-22.04
30
30
steps :
31
- - uses : actions/checkout@v2
31
+ - uses : actions/checkout@v4
32
32
- name : Build Docker images
33
33
env :
34
34
DOCKER_USERNAME : ${{ secrets.DOCKER_USERNAME }}
You can’t perform that action at this time.
0 commit comments