Skip to content

Commit 7a05f4d

Browse files
committed
progress
1 parent 14feb4e commit 7a05f4d

File tree

4 files changed

+1870
-1458
lines changed

4 files changed

+1870
-1458
lines changed

.github/workflows/npm-publish.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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 }}

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
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
},

packages/express-typed/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",
@@ -24,8 +24,6 @@
2424
"express": "*",
2525
"@types/express": "*"
2626
},
27-
"dependencies": {
28-
},
2927
"files": [
3028
"dist"
3129
]

0 commit comments

Comments
 (0)