Skip to content

Commit dd00698

Browse files
committed
ci: fix ci release, use pnpm workaround
1 parent f4d91cb commit dd00698

File tree

5 files changed

+158
-131
lines changed

5 files changed

+158
-131
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ jobs:
1414
- uses: actions/setup-node@v2
1515
with:
1616
node-version: 14
17-
- run: yarn install
17+
- run: npm i -g pnpm
18+
- run: pnpm i
1819
- run: npx semantic-release --branches main
1920
env:
2021
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,24 @@
2323
"build"
2424
],
2525
"scripts": {
26-
"prepublishOnly": "tsc -p tsconfig.build.json && pnpm test",
26+
"prepublishOnly": "node node_modules/typescript/bin/tsc -p tsconfig.build.json && pnpm test",
2727
"test": "tsd && jest"
2828
},
29+
"tsd": {
30+
"extends": "@zardoy/tsconfig/node",
31+
"compilerOptions": {
32+
"baseUrl": ".",
33+
"paths": {
34+
"modify-json-file": [
35+
"./build"
36+
]
37+
}
38+
},
39+
"include": [
40+
"build",
41+
"test-d"
42+
]
43+
},
2944
"engines": {
3045
"node": ">=12"
3146
},

0 commit comments

Comments
 (0)