Skip to content

Commit

Permalink
ci: update version in publish
Browse files Browse the repository at this point in the history
  • Loading branch information
arusakov committed Oct 16, 2024
1 parent c55e90e commit dc9f80b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ jobs:

- run: yarn install --frozen-lockfile

- run: yarn build
- run: |
yarn build
VERSION='${{ github.ref_name }}'
PACKAGE_JSON=$(node -p "const p = require('./package'); p.version = '${VERSION:1}'.substring(1); JSON.stringify(p, null, 2)")
echo $PACKAGE_JSON > package.json
- run: npm publish
env:
Expand Down

0 comments on commit dc9f80b

Please sign in to comment.