File tree Expand file tree Collapse file tree 3 files changed +33
-7
lines changed
Expand file tree Collapse file tree 3 files changed +33
-7
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ pull_request :
5+ branches : [main]
6+
7+ jobs :
8+ build :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v4
12+ - uses : actions/setup-node@v4
13+ with :
14+ node-version : ' 20.x'
15+ - name : Install dependencies
16+ run : yarn
17+ - name : Build
18+ run : yarn build
19+ - name : Test
20+ run : yarn test
Original file line number Diff line number Diff line change @@ -22,11 +22,12 @@ jobs:
2222 - uses : actions/setup-node@v4
2323 with :
2424 node-version : ' 20.x'
25- registry-url : ' https://registry.npmjs.org'
26- scope : ' @assert-equals'
27- - run : yarn && yarn docs
28- - name : ' Upload Pages artifact'
29- uses : ' actions/upload-pages-artifact@v3'
25+ - name : Install dependencies
26+ run : yarn
27+ - name : Generate documentation
28+ run : yarn docs
29+ - name : Upload Pages artifact
30+ uses : actions/upload-pages-artifact@v3
3031 with :
3132 path : ' docs/'
3233
Original file line number Diff line number Diff line change 11name : Publish package to npm
2+
23on :
34 push :
45 tags :
1819 node-version : ' 20.x'
1920 registry-url : ' https://registry.npmjs.org'
2021 scope : ' @assert-equals'
21- - run : yarn && yarn build
22- - run : yarn publish
22+ - name : Install dependencies
23+ run : yarn
24+ - name : Build
25+ run : yarn build
26+ - name : Publish to npm
27+ run : yarn publish
2328 env :
2429 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments