Skip to content

Commit

Permalink
ci: remove extract version from tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Bloomingg committed Jan 8, 2025
1 parent 85b1caf commit 5278896
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,6 @@ jobs:
- name: Install dependencies
run: npm install

- name: Extract version from tag or dispatch
id: get_version
run: |
if [ "${{ github.event_name }}" == "push" ]; then
echo "Version from tag ${GITHUB_REF##*/}"
echo "::set-output name=version::${GITHUB_REF##*/v}"
elif [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
echo "Version from dispatch input ${{ github.event.inputs.version }}"
echo "::set-output name=version::${{ github.event.inputs.version }}"
fi
- name: Update version in package.json
run: npm version ${{ steps.get_version.outputs.version }} --no-git-tag-version

- name: Build
run: npm run build

Expand Down

0 comments on commit 5278896

Please sign in to comment.