File tree Expand file tree Collapse file tree 4 files changed +1870
-1458
lines changed
Expand file tree Collapse file tree 4 files changed +1870
-1458
lines changed Original file line number Diff line number Diff line change 1+ name : Publish to NPM
2+ on :
3+ release :
4+ types : [created]
5+ jobs :
6+ build-and-publish-express-typed :
7+ runs-on : ubuntu-latest
8+ steps :
9+ - uses : actions/checkout@v4
10+ - name : Install Node.js
11+ uses : actions/setup-node@v4
12+ with :
13+ node-version : 20
14+ - uses : pnpm/action-setup@v3
15+ name : Install pnpm
16+ with :
17+ version : 8
18+ run_install : false
19+ - name : Get pnpm store directory
20+ shell : bash
21+ run : |
22+ echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
23+ - uses : actions/cache@v4
24+ name : Setup pnpm cache
25+ with :
26+ path : ${{ env.STORE_PATH }}
27+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
28+ restore-keys : |
29+ ${{ runner.os }}-pnpm-store-
30+
31+ - name : Install dependencies
32+ run : pnpm install
33+ working-directory : packages/express-typed
34+ - name : Publish package on NPM 📦
35+ run : npm publish
36+ working-directory : packages/express-typed
37+ env :
38+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 44 "version" : " 1.0.0" ,
55 "description" : " " ,
66 "main" : " index.js" ,
7- "scripts" : {
8- "test" : " echo \" Error: no test specified\" && exit 1"
9- },
7+ "scripts" : {},
108 "dependencies" : {
119 "express-typed" : " workspace:*"
1210 },
Original file line number Diff line number Diff line change 11{
22 "name" : " express-typed" ,
3- "version" : " 0.0.2 " ,
3+ "version" : " 0.0.3 " ,
44 "description" : " " ,
55 "type" : " module" ,
66 "main" : " dist/express-typed.js" ,
2424 "express" : " *" ,
2525 "@types/express" : " *"
2626 },
27- "dependencies" : {
28- },
2927 "files" : [
3028 " dist"
3129 ]
You can’t perform that action at this time.
0 commit comments