Skip to content

Commit 1fb038a

Browse files
authored
ci: update github actions (#309)
* chore(release): bump version to 0.24.0 * ci: update github actions * revert: package json * chore: update host
1 parent edca9dd commit 1fb038a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/test_and_release.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ on:
1313
jobs:
1414
test:
1515
name: Run Dashcore lib tests
16-
runs-on: ubuntu-20.04
16+
runs-on: ubuntu-latest
1717
timeout-minutes: 10
1818
steps:
19-
- uses: actions/checkout@v2
19+
- uses: actions/checkout@v4
2020

2121
- uses: actions/setup-node@v2
2222
with:
23-
node-version: '16'
23+
node-version: '20'
2424

2525
- name: Enable NPM cache
26-
uses: actions/cache@v2
26+
uses: actions/cache@v4
2727
with:
2828
path: '~/.npm'
2929
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
@@ -41,19 +41,19 @@ jobs:
4141

4242
release:
4343
name: Release NPM package
44-
runs-on: ubuntu-20.04
44+
runs-on: ubuntu-latest
4545
needs: test
4646
if: ${{ github.event_name == 'release' }}
4747
steps:
48-
- uses: actions/checkout@v2
48+
- uses: actions/checkout@v4
4949

5050
- name: Check package version matches tag
5151
uses: geritol/match-tag-to-package-version@0.1.0
5252
env:
5353
TAG_PREFIX: refs/tags/v
5454

5555
- name: Enable NPM cache
56-
uses: actions/cache@v2
56+
uses: actions/cache@v4
5757
with:
5858
path: '~/.npm'
5959
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
@@ -64,7 +64,7 @@ jobs:
6464
run: npm ci
6565

6666
- name: Set release tag
67-
uses: actions/github-script@v3
67+
uses: actions/github-script@v7
6868
id: tag
6969
with:
7070
result-encoding: string
@@ -74,7 +74,7 @@ jobs:
7474
return (tag.includes('dev') ? `${major}.${minor}-dev` : 'latest');
7575
7676
- name: Publish NPM package
77-
uses: JS-DevTools/npm-publish@v1
77+
uses: JS-DevTools/npm-publish@v3
7878
with:
7979
token: ${{ secrets.NPM_TOKEN }}
8080
tag: ${{ steps.tag.outputs.result }}

0 commit comments

Comments
 (0)