This commit is contained in:
Yeicor
2024-03-10 17:42:09 +01:00
parent f3672202ea
commit b339955e37

View File

@@ -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"