Skip to content

Commit

Permalink
Adds Node.js 22 to tests, update Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ddebin committed Sep 2, 2024
1 parent edd06f7 commit a06b3cd
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5,758 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12, 14, 16, 18, 20]
node-version: [12, 14, 16, 18, 20, 22]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm install
- run: npm run lint
- run: npm test
16 changes: 8 additions & 8 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,24 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
- run: npm ci
node-version: latest
- run: npm install
- run: npm run lint
- run: npm test

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: latest
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm install
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ build/Release
node_modules/
jspm_packages/

# Dependency lock file
package-lock.json

# TypeScript v1 declaration files
typings/

Expand Down
Loading

0 comments on commit a06b3cd

Please sign in to comment.