File tree Expand file tree Collapse file tree 2 files changed +13
-14
lines changed Expand file tree Collapse file tree 2 files changed +13
-14
lines changed Original file line number Diff line number Diff line change 11name : On Release Frontend
22
33on :
4- push :
5- tags :
6- - v*
4+ release :
5+ types : [published]
76
87jobs :
98 build :
@@ -12,20 +11,20 @@ jobs:
1211 run :
1312 working-directory : ./frontend
1413 steps :
15- - uses : actions/checkout@v2
16- - name : Use Node.js
17- uses : actions/setup-node@v2
14+ - uses : actions/checkout@v4
15+ - uses : actions/setup-node@v3
1816 with :
1917 node-version : ' 20.x'
18+ registry-url : ' https://registry.npmjs.org'
2019 - name : Install
21- run : make install -c frontend
20+ run : make install
2221 - name : Run linter
2322 run : make lint
2423 - name : Run tests
2524 run : make test
2625 - name : Build dist
2726 run : make build
2827 - name : Publish
29- run : |
30- npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPMJS_COM }}
31- make publish
28+ run : make publish
29+ env :
30+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 66 "start-frontend" : " ./bin/devServer.js"
77 },
88 "scripts" : {
9- "dev" : " npx vite --host" ,
10- "build" : " npx tsc && npx vite build" ,
11- "lint" : " npx eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0" ,
12- "preview" : " npx vite preview"
9+ "dev" : " vite --host" ,
10+ "build" : " tsc && npx vite build" ,
11+ "lint" : " eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0" ,
12+ "preview" : " vite preview"
1313 },
1414 "dependencies" : {
1515 "@types/react" : " ^18.2.21" ,
You can’t perform that action at this time.
0 commit comments