From 162d8c10294cd7688850641a552da5c09048e2d0 Mon Sep 17 00:00:00 2001 From: Raphael Kabo Date: Wed, 31 Jul 2024 23:27:54 +0100 Subject: [PATCH] ughhhhhh --- .github/workflows/publish-ghcr.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-ghcr.yaml b/.github/workflows/publish-ghcr.yaml index 9ec6a3b..a0fbe03 100644 --- a/.github/workflows/publish-ghcr.yaml +++ b/.github/workflows/publish-ghcr.yaml @@ -12,6 +12,11 @@ jobs: packages: write runs-on: ubuntu-latest steps: + - name: Checkout + uses: actions/checkout@v4 + - name: get-npm-version + id: package-version + uses: martinbeentjes/npm-get-version-action@v1.3.1 - name: Set up QEMU uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx @@ -29,7 +34,7 @@ jobs: platforms: linux/amd64,linux/arm/v7,linux/arm64 tags: | ghcr.io/${{ github.repository }}:${{ github.sha }} - ghcr.io/${{ github.repository }}:${{ github.ref_name }} + ghcr.io/${{ github.repository }}:${{ steps.package-version.outputs.current-version }} ghcr.io/${{ github.repository }}:latest # - name: Publish to GHCR