Skip to content

Commit 13963bb

Browse files
authored
ci: update node and actions version (#788)
1 parent d93ceac commit 13963bb

File tree

9 files changed

+14313
-6086
lines changed

9 files changed

+14313
-6086
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,4 @@ updates:
9999
- 8.2.1
100100
- 8.3.0
101101
- dependency-name: "@types/sinon"
102-
versions:
103-
- 9.0.10
104102
- dependency-name: sinon
105-
versions:
106-
- 10.0.0

.github/workflows/pull-request.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,14 @@ jobs:
99
continue-on-error: true # Prevents parallel job from being cancelled if all fail
1010
strategy:
1111
matrix:
12-
# Add support for modern versions of node
13-
# https://go.mparticle.com/work/SQDSDKS-5236
14-
node-version: [14.x, 15.x, 16.x, 17.x, 18.x, 19.x]
12+
node-version: [20.x, 22.x, 24.x]
1513

1614
steps:
1715
- name: Checkout
18-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4
1917

2018
- name: NPM install ${{ matrix.node-version }}
21-
uses: actions/setup-node@v3
19+
uses: actions/setup-node@v4
2220
with:
2321
node-version: ${{ matrix.node-version }}
2422

@@ -33,8 +31,8 @@ jobs:
3331
run: npm run test
3432

3533
- name: Archive npm failure logs
36-
uses: actions/upload-artifact@v3
34+
uses: actions/upload-artifact@v4
3735
if: failure()
3836
with:
39-
name: npm-logs
37+
name: npm-logs-${{ github.job }}-${{ matrix.node-version || 'latest' }}-run${{ github.run_attempt }}
4038
path: ~/.npm/_logs

.github/workflows/release.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ jobs:
2121

2222
steps:
2323
- name: Checkout
24-
uses: actions/checkout@v3
24+
uses: actions/checkout@v4
2525

2626
- name: NPM install ${{ matrix.node-version }}
27-
uses: actions/setup-node@v3
27+
uses: actions/setup-node@v4
2828
with:
29-
node-version: 14.x
29+
node-version: 24.x
3030

3131
- name: Run NPM CI
3232
run: npm ci
@@ -39,7 +39,7 @@ jobs:
3939
run: npm run test
4040

4141
- name: Archive npm failure logs
42-
uses: actions/upload-artifact@v3
42+
uses: actions/upload-artifact@v4
4343
if: failure()
4444
with:
4545
name: npm-logs
@@ -53,7 +53,7 @@ jobs:
5353
- confirm-public-repo-master-branch
5454
steps:
5555
- name: Checkout development branch
56-
uses: actions/checkout@v3
56+
uses: actions/checkout@v4
5757
with:
5858
repository: mparticle/mparticle-web-media-sdk
5959
ref: development
@@ -85,7 +85,7 @@ jobs:
8585

8686
steps:
8787
- name: Checkout public master branch
88-
uses: actions/checkout@v3
88+
uses: actions/checkout@v4
8989
with:
9090
fetch-depth: 0
9191
ref: master
@@ -102,9 +102,9 @@ jobs:
102102
run: |
103103
git pull origin release/${{ github.run_number }}
104104
- name: Setup Node.js
105-
uses: actions/setup-node@v3
105+
uses: actions/setup-node@v4
106106
with:
107-
node-version: 14.x
107+
node-version: 24.x
108108
registry-url: 'https://registry.npmjs.org'
109109

110110
- name: Install dependencies
@@ -123,7 +123,7 @@ jobs:
123123
npx semantic-release
124124
125125
- name: Archive npm failure logs
126-
uses: actions/upload-artifact@v3
126+
uses: actions/upload-artifact@v4
127127
if: failure()
128128
with:
129129
name: npm-logs
@@ -137,10 +137,10 @@ jobs:
137137
sync-repository:
138138
name: Sync repositories
139139
needs: release
140-
runs-on: ubuntu-18.04
140+
runs-on: ubuntu-latest
141141
steps:
142142
- name: Checkout master branch
143-
uses: actions/checkout@v3
143+
uses: actions/checkout@v4
144144
with:
145145
fetch-depth: 0
146146
repository: ${{ github.repository }}

0 commit comments

Comments
 (0)