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