File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish to NPM
2+
3+ on :
4+ release :
5+ types : [created]
6+
7+ jobs :
8+ publish :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v3
12+ - uses : actions/setup-node@v3
13+ with :
14+ node-version : 16
15+ - run : npm ci
16+ - run : npm run build
17+ - run : npm test
18+ - run : npm publish
19+ env :
20+ NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
Original file line number Diff line number Diff line change 77 "scripts" : {
88 "clean" : " rm -rf cjs" ,
99 "build" : " tsc" ,
10+ "test" : " echo 'no tests'" ,
1011 "esbuild" : " esbuild ./src/index.ts --bundle --outdir=cjs --format=cjs --target=node18 --platform=node --external:react --external:axios --external:passport --external:payload --external:express-session"
1112 },
1213 "exports" : {
You can’t perform that action at this time.
0 commit comments