diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2764b8f..06e16f9 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -21,16 +21,17 @@ jobs: runs-on: "ubuntu-latest" steps: - uses: "actions/checkout@v4" + - run: "echo 'CLEAN_VERSION=${{ github.ref }}' | sed 's,refs/tags/v,,g' >> $GITHUB_ENV" # Write the new version to package.json - uses: "actions/setup-node@v4" - - run: "yarn version --new-version ${{ github.ref }}" + - run: "yarn version --new-version $CLEAN_VERSION" # Write the new version to pyproject.toml - run: "pipx install poetry" - uses: "actions/setup-python@v5" with: python-version: "3.11" cache: "poetry" - - run: "poetry version ${{ github.ref }}" + - run: "poetry version $CLEAN_VERSION" rebuild: # Makes sure all artifacts are updated and use the new version needs: "update-versions"