File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Continuous Integration
2+
3+ on :
4+ push :
5+ paths-ignore :
6+ - ' **.md'
7+
8+ jobs :
9+ ci :
10+ name : Build and run tests
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v4
14+
15+ - uses : actions/setup-node@v4
16+ with :
17+ node-version : 20
18+
19+ - uses : pnpm/action-setup@v4
20+ with :
21+ run_install : true
22+ env :
23+ NPM_TOKEN : xxx
24+
25+ - uses : browser-actions/setup-chrome@v1
26+ with :
27+ chrome-version : stable
28+
29+ - name : Run all tests
30+ run : xvfb-run pnpm run ci
31+ env :
32+ NPM_TOKEN : xxx
33+
Original file line number Diff line number Diff line change 1+ name : Deployment
2+
3+ on :
4+ push :
5+ branches : ['main']
6+
7+ jobs :
8+ deploy :
9+ name : Publish all NPM Packages
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v4
13+
14+ - uses : actions/setup-node@v4
15+ with :
16+ node-version : 20
17+ always-auth : true
18+ registry-url : https://registry.npmjs.org
19+ scope : ' @spearwolf'
20+
21+ - uses : pnpm/action-setup@v4
22+ with :
23+ run_install : true
24+ env :
25+ NPM_TOKEN : xxx
26+
27+ - run : pnpm run publishNpmPkg
28+ name : Publish packages
29+ env :
30+ NODE_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }}
31+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
32+
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments