Skip to content

Commit bef3467

Browse files
fix(ci): fix propagating version
1 parent 2e39328 commit bef3467

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/actions/publish-npm/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ runs:
4242
id: update_version
4343
run: |
4444
npm version ${{ inputs.version }}
45-
echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
45+
echo "VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV
4646
shell: bash
4747
working-directory: ${{ inputs.working-directory }}
4848
# - name: Run Build
@@ -67,7 +67,7 @@ runs:
6767
git remote -v
6868
git push origin main --tags
6969
gh auth login --with-token ${{ inputs.ghToken }}
70-
gh release create ${{ steps.update_version.outputs.version }} --title "v${{ steps.update_version.outputs.version }}" --generate-notes
70+
gh release create "v$VERSION" --title "v$VERSION" --generate-notes
7171
shell: bash
7272
env:
7373
GH_TOKEN: ${{ inputs.ghToken }}

0 commit comments

Comments
 (0)