Skip to content

Commit 607744e

Browse files
committed
chore: add prepublish step
1 parent 5c6a947 commit 607744e

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

.github/workflows/npm-publish.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,11 @@ jobs:
88
publish:
99
runs-on: ubuntu-latest
1010
steps:
11-
- run: ls -l
12-
# - uses: actions/checkout@v4
13-
# - uses: actions/setup-node@v3
14-
# with:
15-
# node-version: "20"
16-
# - uses: JS-DevTools/npm-publish@v3
17-
# with:
18-
# token: ${{ secrets.NPM_TOKEN }}
19-
# package: "./@lib/package.json"
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-node@v3
13+
with:
14+
node-version: "20"
15+
- uses: JS-DevTools/npm-publish@v3
16+
with:
17+
token: ${{ secrets.NPM_TOKEN }}
18+
package: "./@lib/package.json"

@lib/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@
3333
"types": "./index.d.ts",
3434
"import": "./src/index.ts"
3535
},
36+
"scripts": {
37+
"prepublishOnly": "cp ../README.md ."
38+
},
3639
"dependencies": {
3740
"proxy-deep": "^3.1.1"
3841
},

0 commit comments

Comments
 (0)