File tree Expand file tree Collapse file tree 3 files changed +42
-1
lines changed
Expand file tree Collapse file tree 3 files changed +42
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Publish package to npmjs
2+ on :
3+ release :
4+ types : [published]
5+ jobs :
6+ build :
7+ runs-on : ubuntu-latest
8+ steps :
9+ - uses : actions/checkout@v4
10+ - uses : actions/setup-node@v3
11+ with :
12+ node-version : ' 22.x'
13+ registry-url : ' https://registry.npmjs.org'
14+ - name : clean install dependencies
15+ run : npm ci
16+ - name : build package
17+ run : npm run build
18+ - name : publishing
19+ run : npm publish --access public
20+ env :
21+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 1+ name : Build and upload static files to the remote server
2+ on : push
3+ jobs :
4+ tests :
5+ runs-on : ubuntu-latest
6+ strategy :
7+ matrix :
8+ version : [16, 18, 20]
9+ steps :
10+ - uses : actions/checkout@v4
11+ - uses : actions/setup-node@v4
12+ with :
13+ node-version : ${{ matrix.version }}
14+ cache : npm
15+ - name : Install project dependencies
16+ run : npm install
17+ - name : Type checking
18+ run : npm run typecheck
19+ - name : Run tests
20+ run : npm test
Original file line number Diff line number Diff line change 66 "test" : " vitest --watch=false" ,
77 "test:watch" : " vitest --watch" ,
88 "test:coverage" : " vitest --coverage" ,
9- "typecheck" : " tsc -p tsconfig.base.json " ,
9+ "typecheck" : " tsc" ,
1010 "build" : " tsc"
1111 },
1212 "dependencies" : {
You can’t perform that action at this time.
0 commit comments