File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 13
13
jobs :
14
14
test :
15
15
name : Run Dashcore lib tests
16
- runs-on : ubuntu-20.04
16
+ runs-on : ubuntu-latest
17
17
timeout-minutes : 10
18
18
steps :
19
- - uses : actions/checkout@v2
19
+ - uses : actions/checkout@v4
20
20
21
21
- uses : actions/setup-node@v2
22
22
with :
23
- node-version : ' 16 '
23
+ node-version : ' 20 '
24
24
25
25
- name : Enable NPM cache
26
- uses : actions/cache@v2
26
+ uses : actions/cache@v4
27
27
with :
28
28
path : ' ~/.npm'
29
29
key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
@@ -41,19 +41,19 @@ jobs:
41
41
42
42
release :
43
43
name : Release NPM package
44
- runs-on : ubuntu-20.04
44
+ runs-on : ubuntu-latest
45
45
needs : test
46
46
if : ${{ github.event_name == 'release' }}
47
47
steps :
48
- - uses : actions/checkout@v2
48
+ - uses : actions/checkout@v4
49
49
50
50
- name : Check package version matches tag
51
51
uses : geritol/match-tag-to-package-version@0.1.0
52
52
env :
53
53
TAG_PREFIX : refs/tags/v
54
54
55
55
- name : Enable NPM cache
56
- uses : actions/cache@v2
56
+ uses : actions/cache@v4
57
57
with :
58
58
path : ' ~/.npm'
59
59
key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
64
64
run : npm ci
65
65
66
66
- name : Set release tag
67
- uses : actions/github-script@v3
67
+ uses : actions/github-script@v7
68
68
id : tag
69
69
with :
70
70
result-encoding : string
74
74
return (tag.includes('dev') ? `${major}.${minor}-dev` : 'latest');
75
75
76
76
- name : Publish NPM package
77
- uses : JS-DevTools/npm-publish@v1
77
+ uses : JS-DevTools/npm-publish@v3
78
78
with :
79
79
token : ${{ secrets.NPM_TOKEN }}
80
80
tag : ${{ steps.tag.outputs.result }}
You can’t perform that action at this time.
0 commit comments