fix(ci): passing VERSION env variable to next ci steps

This commit is contained in:
Thomas Dupont
2022-08-18 12:15:02 +02:00
parent bf199731d3
commit ee38b99376

View File

@@ -342,9 +342,10 @@ jobs:
- run: git config user.name ci-bot
- run: git config user.email ci-bot@example.com
- name: Extract major version from package.json
run: VERSION=$(git show origin/main:package.json | jq -r .version | grep -Po '^(\d+)').x
run: |
echo "VERSION=$(git show origin/main:package.json | jq -r .version | grep -Po '^(\d+)').x" >> $GITHUB_ENV
- run: git fetch origin gh-pages --depth=1
- run: cd documentation && mike deploy --push $VERSION
- run: cd documentation && mike deploy --push -u ${{ env.VERSION }} latest
publish-docs:
# When a new version is tagged, upload the generated typedocs to the appropriate mkdocs <major.x> folder.