File tree Expand file tree Collapse file tree 1 file changed +12
-16
lines changed Expand file tree Collapse file tree 1 file changed +12
-16
lines changed Original file line number Diff line number Diff line change 1
- name : Verify and Publish to npm registry
2
- on :
3
- release :
4
- types : [ published ]
1
+ name : Lint and Test
2
+ on : push
5
3
jobs :
6
4
build :
7
5
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']
11
9
steps :
12
10
- uses : actions/checkout@v4
13
- - uses : actions/setup-node@v4
11
+ - name : Use Node.js ${{ matrix.node-version }}
12
+ uses : actions/setup-node@v4
14
13
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
You can’t perform that action at this time.
0 commit comments