From 7a7323c9bcf9e4680a5f2d2a577e8d587d55c621 Mon Sep 17 00:00:00 2001 From: ben lang <9093983+bl3rune@users.noreply.github.com> Date: Wed, 12 Jun 2024 14:30:24 +0100 Subject: [PATCH] revert to using id package-version --- .github/workflows/publish.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4087f17..be2a0bd 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,10 +15,12 @@ jobs: - run: git config user.name "bl3rune" - run: npm version patch -m "v%s" - run: VERSION=$(node -p "require('./package.json').version") - - run: echo "Version=$VERSION" >> $GITHUB_ENV - run: git tag ${VERSION} - run: git push "https://bl3rune:${{ secrets.ACCESS_TOKEN }}@github.com/$GITHUB_REPOSITORY.git" --follow-tags - run: git push "https://bl3rune:${{ secrets.ACCESS_TOKEN }}@github.com/$GITHUB_REPOSITORY.git" --tags + - name: get-npm-version + id: package-version + uses: martinbeentjes/npm-get-version-action@main - name: Set up QEMU uses: docker/setup-qemu-action@v1 - name: Set up Docker Buildx @@ -33,7 +35,7 @@ jobs: uses: docker/build-push-action@v2 with: push: true - tags: bl3rune/gamedig-discord-bot:latest,bl3rune/gamedig-discord-bot:${{ env.Version }} + tags: bl3rune/gamedig-discord-bot:latest,bl3rune/gamedig-discord-bot:${{steps.package-version.outputs.current-version}} - name: Docker Hub Description uses: peter-evans/dockerhub-description@v2 with: