Skip to content

Commit fe6aaff

Browse files
committed
build: replace refs/tags/ in github.ref for publish
1 parent e126b66 commit fe6aaff

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,14 @@ jobs:
7373
node-version: 20
7474
cache: pnpm
7575

76-
- name: bump version to ${{ github.ref }}
77-
run: pnpx replace-in-files-cli --string="0.191.0" --replacement="${{ github.ref }}" "**/package.json"
76+
- id: version
77+
run: echo "value=$(echo ${{ github.ref }} | sed 's/refs\/tags\///'" >> $GITHUB_OUTPUT
78+
- name: bump version to ${{ steps.version.outputs.value }}
79+
run: |
80+
pnpx replace-in-files-cli \
81+
--string="0.191.0" \
82+
--replacement="${{ steps.version.outputs.value }}" \
83+
"**/package.json"
7884
7985
- name: pnpm instal
8086
run: pnpm install --ignore-scripts

0 commit comments

Comments
 (0)