Skip to content

Commit

Permalink
npm: dont skip build step!
Browse files Browse the repository at this point in the history
  • Loading branch information
zardoy committed Feb 15, 2024
1 parent a5794ef commit aba470c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- run: pnpm build-plugin:npm
- run: node typescript/npm/beforePublish.mjs
- run: pnpm publish --access public --no-git-checks
working-directory: typescript
Expand Down
1 change: 1 addition & 0 deletions typescript/npm/beforePublish.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ fs.copyFileSync('./typescript/npm/package.json', './typescript/package.json')

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

0 comments on commit aba470c

Please sign in to comment.