Skip to content

Commit

Permalink
ci: set version correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
boywithkeyboard committed Mar 1, 2024
1 parent bd4a531 commit db0bc7d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,15 @@ jobs:
core.exportVariable('VERSION', version)
const packageJson = JSON.parse(readFileSync('./package.json', { encoding: 'utf-8' }))
packageJson.version = version
writeFileSync('./package.json', JSON.stringify(packageJson, null, 2))
- name: Build Package
run: npm run build

- name: Set Package Version
run: npm version $VERSION

- name: Publish Package
uses: JS-DevTools/npm-publish@v3
with:
Expand Down

0 comments on commit db0bc7d

Please sign in to comment.