Skip to content

Commit cd8914a

Browse files
authored
U/jisong/publishissue2 (#3250)
* investigate publish issue * investigate publish issue 2
1 parent 871a268 commit cd8914a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,6 @@ jobs:
2828
run: npm run-script build:ci
2929

3030
- name: Publish
31-
run: node tools/build.js publish
31+
uses: author/action-publish@stable
32+
with:
33+
scan: './dist'

tools/buildTools/normalize.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ function normalize() {
5555
packageJson.version = version;
5656
}
5757

58+
if (packageJson.version == '0.0.0') {
59+
packageJson.private = true;
60+
}
61+
5862
knownCustomizedPackages[packageName] = packageJson.version;
5963

6064
packageJson.typings = './lib/index.d.ts';

0 commit comments

Comments
 (0)