Skip to content

Commit aba470c

Browse files
committed
npm: dont skip build step!
1 parent a5794ef commit aba470c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.github/workflows/release.yml

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
3737
env:
3838
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
39+
- run: pnpm build-plugin:npm
3940
- run: node typescript/npm/beforePublish.mjs
4041
- run: pnpm publish --access public --no-git-checks
4142
working-directory: typescript

typescript/npm/beforePublish.mjs

+1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ fs.copyFileSync('./typescript/npm/package.json', './typescript/package.json')
44

55
const packageJson = JSON.parse(fs.readFileSync('./typescript/package.json', 'utf8'))
66
packageJson.version = JSON.parse(fs.readFileSync('./package.json', 'utf8')).version
7+
if (packageJson.version === '0.0.0-dev') packageJson.version = '0.0.0'
78
fs.writeFileSync('./typescript/package.json', JSON.stringify(packageJson, null, 2))

0 commit comments

Comments
 (0)