File tree Expand file tree Collapse file tree 2 files changed +33
-1
lines changed
Expand file tree Collapse file tree 2 files changed +33
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Publish to npm
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ jobs :
9+ publish :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Checkout Repository
13+ uses : actions/checkout@v4
14+
15+ - name : Use Node.js
16+ uses : actions/setup-node@v4
17+ with :
18+ node-version : ' 22'
19+ registry-url : ' https://registry.npmjs.org/'
20+ cache : ' npm'
21+
22+ - name : Install Dependencies
23+ run : npm ci
24+
25+ - name : Build package
26+ run : npm run build
27+
28+ - name : Publish to npm
29+ run : npm publish
30+ env :
31+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 2626 ],
2727 "scripts" : {
2828 "build" : " tsc -b && vite build" ,
29- "format" : " prettier --write ."
29+ "format" : " prettier --write ." ,
30+ "prepublishOnly" : " npm run build"
3031 },
3132 "dependencies" : {
3233 "parse5" : " ^7.3.0"
You can’t perform that action at this time.
0 commit comments