Skip to content

Commit 6444076

Browse files
committed
ci: update and clean workflows
1 parent d3f4849 commit 6444076

File tree

2 files changed

+19
-23
lines changed

2 files changed

+19
-23
lines changed

.github/workflows/nodejs.yml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3-
41
name: Tests and CI
52

63
on:
74
push:
8-
branches-ignore: main
5+
branches-ignore:
6+
- main
97
pull_request:
10-
branches: main
8+
branches:
9+
- main
1110

1211
jobs:
1312
build:
@@ -16,14 +15,14 @@ jobs:
1615

1716
strategy:
1817
matrix:
19-
node-version: [14.x, 16.x, 18.x, 20.x]
18+
node-version: [14.x, 16.x, 18.x, 20.x, 22.x, 23.x]
2019

2120
steps:
22-
- uses: actions/checkout@v2
23-
- name: Use Node.js ${{ matrix.node-version }}
24-
uses: actions/setup-node@v1
25-
with:
26-
node-version: ${{ matrix.node-version }}
27-
- run: npm ci
28-
- run: npm run build --if-present
29-
- run: npm test
21+
- uses: actions/checkout@v3
22+
- name: Use Node.js ${{ matrix.node-version }}
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: ${{ matrix.node-version }}
26+
- run: npm ci
27+
- run: npm run build --if-present
28+
- run: npm test

.github/workflows/npmpublish.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3-
41
name: Build and Publish
52

63
on:
@@ -13,10 +10,10 @@ jobs:
1310
runs-on: ubuntu-latest
1411
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
1512
steps:
16-
- uses: actions/checkout@v2
17-
- uses: actions/setup-node@v1
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-node@v3
1815
with:
19-
node-version: 20
16+
node-version: 22
2017
- name: Install Dependencies
2118
run: npm ci
2219
- name: Test
@@ -26,10 +23,10 @@ jobs:
2623
needs: test
2724
runs-on: ubuntu-latest
2825
steps:
29-
- uses: actions/checkout@v2
30-
- uses: actions/setup-node@v1
26+
- uses: actions/checkout@v3
27+
- uses: actions/setup-node@v3
3128
with:
32-
node-version: 14
29+
node-version: 22
3330
registry-url: https://registry.npmjs.org/
3431
- name: Install Dependencies
3532
run: npm ci

0 commit comments

Comments
 (0)