File tree Expand file tree Collapse file tree 3 files changed +34
-1
lines changed Expand file tree Collapse file tree 3 files changed +34
-1
lines changed Original file line number Diff line number Diff line change 1+ name : publish
2+
3+ # Run when a new Github publish is released
4+ on :
5+ release :
6+ types : [released]
7+
8+ jobs :
9+ publish :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Check out repository code
13+ uses : actions/checkout@v4
14+
15+ - name : Setup node
16+ uses : actions/setup-node@v4
17+ with :
18+ node-version : " 20"
19+
20+ - name : Install packages
21+ run : npm install
22+
23+ - name : Build project and dependencies
24+ run : npm run build
25+
26+ - name : Run unit tests and generate report
27+ run : npm run test:ci
28+
29+ - name : Publish package
30+ uses : JS-DevTools/npm-publish@v3
31+ with :
32+ token : ${{ secrets.NPM_TOKEN }}
33+ access : " public"
Original file line number Diff line number Diff line change 1616 "check-formatting" : " npx prettier --check src/" ,
1717 "test" : " npx jest --watch" ,
1818 "test:ci" : " npx jest --collectCoverage --forceExit" ,
19- "package" : " node ./scripts/package.js "
19+ "package" : " node ./scripts/package.cjs "
2020 },
2121 "files" : [
2222 " out/"
File renamed without changes.
You can’t perform that action at this time.
0 commit comments