File tree Expand file tree Collapse file tree 3 files changed +34
-55
lines changed Expand file tree Collapse file tree 3 files changed +34
-55
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : Continuous Integration
2
+
3
+ on :
4
+ pull_request :
5
+ branches : ['main']
6
+
7
+ jobs :
8
+ build-and-test :
9
+ runs-on : ubuntu-latest
10
+
11
+ strategy :
12
+ matrix :
13
+ node-version : [22.x]
14
+ # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
15
+
16
+ steps :
17
+ - uses : actions/checkout@v4
18
+ - name : Use Node.js ${{ matrix.node-version }}
19
+ uses : actions/setup-node@v4
20
+ with :
21
+ node-version : ${{ matrix.node-version }}
22
+ cache : ' npm'
23
+ - run : npm ci
24
+ - run : npm run lint
25
+ - run : npm run build
26
+ - run : npm test
27
+ - run : xvfb-run -a npm run test:integration
Original file line number Diff line number Diff line change 1
- name : package visx
1
+ name : package and publish
2
2
3
- on : workflow_dispatch
4
-
5
- # on:
6
- # push:
7
- # branches:
8
- # - main
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
9
7
10
8
permissions :
11
9
contents : read # for checkout
12
10
13
11
jobs :
14
12
release :
13
+ needs : build-and-test
15
14
runs-on : ubuntu-latest
16
15
permissions :
17
16
contents : write # to be able to publish a GitHub release
24
23
node-version : 22
25
24
- run : npm ci
26
25
- run : npm audit signatures
27
- - run : npx semantic-release --extends ./package. release.config.js
26
+ - run : npx semantic-release --extends ./release.config.js
28
27
env :
29
28
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
30
29
# In case you want to publish to Visual Studio Marketplace
You can’t perform that action at this time.
0 commit comments