Skip to content

Commit 6277023

Browse files
committed
update
removed matrix strategy
1 parent 4b7f75f commit 6277023

File tree

1 file changed

+17
-22
lines changed

1 file changed

+17
-22
lines changed

.github/workflows/node.js.yml

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,22 @@ jobs:
1414

1515
runs-on: ubuntu-latest
1616

17-
strategy:
18-
matrix:
19-
node-version: [19.x, 20.x, 21.x]
20-
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
21-
2217
steps:
23-
- uses: actions/checkout@v3
24-
- name: Use Node.js ${{ matrix.node-version }}
25-
uses: actions/setup-node@v3
26-
with:
27-
node-version: ${{ matrix.node-version }}
28-
cache: "npm"
29-
- run: npm install
30-
- run: npm run build
31-
- run: npm test
32-
- run: sudo apt-get install xvfb
33-
- run: xvfb-run --auto-servernum npm run test:chrome
34-
- run: xvfb-run --auto-servernum npm run test:firefox
18+
- uses: actions/checkout@v3
19+
- name: Use Node.js 20.x
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: "20.x"
23+
cache: "npm"
24+
- run: npm install
25+
- run: npm run build
26+
- run: npm test
27+
- run: sudo apt-get install xvfb
28+
- run: xvfb-run --auto-servernum npm run test:chrome
29+
- run: xvfb-run --auto-servernum npm run test:firefox
3530

36-
- name: Publish to npm
37-
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
38-
env:
39-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
40-
run: npm publish
31+
- name: Publish to npm
32+
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
33+
env:
34+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
35+
run: npm publish

0 commit comments

Comments
 (0)