Skip to content

Commit

Permalink
build: replace refs/tags/ in github.ref for publish
Browse files Browse the repository at this point in the history
  • Loading branch information
TrySound committed Dec 6, 2024
1 parent e126b66 commit fe6aaff
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,14 @@ jobs:
node-version: 20
cache: pnpm

- name: bump version to ${{ github.ref }}
run: pnpx replace-in-files-cli --string="0.191.0" --replacement="${{ github.ref }}" "**/package.json"
- id: version
run: echo "value=$(echo ${{ github.ref }} | sed 's/refs\/tags\///'" >> $GITHUB_OUTPUT
- name: bump version to ${{ steps.version.outputs.value }}
run: |
pnpx replace-in-files-cli \
--string="0.191.0" \
--replacement="${{ steps.version.outputs.value }}" \
"**/package.json"
- name: pnpm instal
run: pnpm install --ignore-scripts
Expand Down

0 comments on commit fe6aaff

Please sign in to comment.