Skip to content

Commit bb60e15

Browse files
committed
revert github action
1 parent 44d8dfb commit bb60e15

File tree

1 file changed

+8
-22
lines changed

1 file changed

+8
-22
lines changed

.github/workflows/node.js.yml

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2-
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3-
41
name: Node.js CI
52

63
on:
74
push:
8-
branches: [ "master" ]
5+
branches: [ "master", "develop" ]
96
pull_request:
107
branches: [ "master" ]
118

@@ -14,32 +11,21 @@ jobs:
1411

1512
runs-on: ubuntu-latest
1613

14+
strategy:
15+
matrix:
16+
node-version: [19.x, 20.x, 21.x]
17+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
18+
1719
steps:
1820
- uses: actions/checkout@v3
19-
- name: Use Node.js 20.x
21+
- name: Use Node.js ${{ matrix.node-version }}
2022
uses: actions/setup-node@v3
2123
with:
22-
node-version: "20.x"
24+
node-version: ${{ matrix.node-version }}
2325
cache: "npm"
2426
- run: npm install
2527
- run: npm run build
2628
- run: npm test
2729
- run: sudo apt-get install xvfb
2830
- run: xvfb-run --auto-servernum npm run test:chrome
2931
- run: xvfb-run --auto-servernum npm run test:firefox
30-
31-
- name: Publish to npm dry-run
32-
if: github.ref == 'refs/heads/master' && github.event_name == 'pull_request'
33-
env:
34-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
35-
run: |
36-
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
37-
npm publish --dry-run
38-
39-
- name: Publish to npm
40-
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
41-
env:
42-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
43-
run: |
44-
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
45-
npm publish

0 commit comments

Comments
 (0)