Skip to content

Commit

Permalink
Merge pull request #30 from bl3rune/auto-version-workflow
Browse files Browse the repository at this point in the history
revert to using id package-version
  • Loading branch information
bl3rune authored Jun 12, 2024
2 parents 9186fc1 + 7a7323c commit eb7b545
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit eb7b545

Please sign in to comment.