Skip to content

Commit a06b3cd

Browse files
committed
Adds Node.js 22 to tests, update Github actions
1 parent edd06f7 commit a06b3cd

File tree

4 files changed

+15
-5758
lines changed

4 files changed

+15
-5758
lines changed

.github/workflows/node.js.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ jobs:
1010
runs-on: ubuntu-latest
1111
strategy:
1212
matrix:
13-
node-version: [12, 14, 16, 18, 20]
13+
node-version: [12, 14, 16, 18, 20, 22]
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616
- name: Use Node.js ${{ matrix.node-version }}
17-
uses: actions/setup-node@v3
17+
uses: actions/setup-node@v4
1818
with:
1919
node-version: ${{ matrix.node-version }}
20-
- run: npm ci
20+
- run: npm install
2121
- run: npm run lint
2222
- run: npm test

.github/workflows/npm-publish.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,24 @@ jobs:
1111
build:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
15-
- uses: actions/setup-node@v3
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-node@v4
1616
with:
17-
node-version: 16
18-
- run: npm ci
17+
node-version: latest
18+
- run: npm install
1919
- run: npm run lint
2020
- run: npm test
2121

2222
publish-npm:
2323
needs: build
2424
runs-on: ubuntu-latest
2525
steps:
26-
- uses: actions/checkout@v3
27-
- uses: actions/setup-node@v3
26+
- uses: actions/checkout@v4
27+
- uses: actions/setup-node@v4
2828
with:
29-
node-version: 16
29+
node-version: latest
3030
registry-url: https://registry.npmjs.org/
31-
- run: npm ci
31+
- run: npm install
3232
- run: npm publish
3333
env:
3434
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ build/Release
4141
node_modules/
4242
jspm_packages/
4343

44+
# Dependency lock file
45+
package-lock.json
46+
4447
# TypeScript v1 declaration files
4548
typings/
4649

0 commit comments

Comments
 (0)