Skip to content

Commit 0aea730

Browse files
Update lint-and-test.yaml
1 parent 057b31f commit 0aea730

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

.github/workflows/lint-and-test.yaml

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,18 @@
1-
name: Verify and Publish to npm registry
2-
on:
3-
release:
4-
types: [ published ]
1+
name: Lint and Test
2+
on: push
53
jobs:
64
build:
75
runs-on: ubuntu-latest
8-
permissions:
9-
contents: read
10-
id-token: write
6+
strategy:
7+
matrix:
8+
node-version: ['20.x', '22.x', '23.x']
119
steps:
1210
- uses: actions/checkout@v4
13-
- uses: actions/setup-node@v4
11+
- name: Use Node.js ${{ matrix.node-version }}
12+
uses: actions/setup-node@v4
1413
with:
15-
node-version: '22.x'
16-
registry-url: 'https://registry.npmjs.org'
17-
- run: npm ci
18-
- name: Verify
19-
run: npm test
20-
- run: npm publish --access public
21-
env:
22-
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
14+
node-version: ${{ matrix.node-version }}
15+
cache: 'npm'
16+
- name: Install dependencies
17+
run: npm ci
18+
- run: npm test

0 commit comments

Comments
 (0)