Skip to content

Commit 7a7323c

Browse files
committed
revert to using id package-version
1 parent 0bb9f9d commit 7a7323c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ jobs:
1515
- run: git config user.name "bl3rune"
1616
- run: npm version patch -m "v%s"
1717
- run: VERSION=$(node -p "require('./package.json').version")
18-
- run: echo "Version=$VERSION" >> $GITHUB_ENV
1918
- run: git tag ${VERSION}
2019
- run: git push "https://bl3rune:${{ secrets.ACCESS_TOKEN }}@github.com/$GITHUB_REPOSITORY.git" --follow-tags
2120
- run: git push "https://bl3rune:${{ secrets.ACCESS_TOKEN }}@github.com/$GITHUB_REPOSITORY.git" --tags
21+
- name: get-npm-version
22+
id: package-version
23+
uses: martinbeentjes/npm-get-version-action@main
2224
- name: Set up QEMU
2325
uses: docker/setup-qemu-action@v1
2426
- name: Set up Docker Buildx
@@ -33,7 +35,7 @@ jobs:
3335
uses: docker/build-push-action@v2
3436
with:
3537
push: true
36-
tags: bl3rune/gamedig-discord-bot:latest,bl3rune/gamedig-discord-bot:${{ env.Version }}
38+
tags: bl3rune/gamedig-discord-bot:latest,bl3rune/gamedig-discord-bot:${{steps.package-version.outputs.current-version}}
3739
- name: Docker Hub Description
3840
uses: peter-evans/dockerhub-description@v2
3941
with:

0 commit comments

Comments
 (0)