Skip to content

Commit

Permalink
use env files as recommended approach for versioning from tags
Browse files Browse the repository at this point in the history
  • Loading branch information
JannisConen committed Jul 30, 2024
1 parent 6e38e9b commit 65200c9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ jobs:
run: |
VERSION=${GITHUB_REF#refs/tags/v}
echo "VERSION=$VERSION"
echo "::set-output name=VERSION::$VERSION"
- name: Update version
run: npm version ${{ steps.extract_version.outputs.VERSION }}
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Update version (npm)
run: npm version $VERSION
working-directory: ./jest
- name: Build the project
run: npm run build
Expand Down Expand Up @@ -71,9 +71,9 @@ jobs:
run: |
VERSION=${GITHUB_REF#refs/tags/v}
echo "VERSION=$VERSION"
echo "::set-output name=VERSION::$VERSION"
- name: Update version
run: poetry version ${{ steps.extract_version.outputs.VERSION }}
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Update version (poetry)
run: poetry version $VERSION
working-directory: ./pytest
- name: Build and publish Python package
env:
Expand Down

0 comments on commit 65200c9

Please sign in to comment.