From 2820bf833f080da4f34dca67e5fa7c9651594d77 Mon Sep 17 00:00:00 2001 From: Eugene Fox Date: Thu, 11 Dec 2025 02:30:20 +0000 Subject: [PATCH] chore(ci): pipeline now pulls the version from release tag --- .github/workflows/ci.yml | 10 +++++----- package.json | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6be1b58..2516e20 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,10 +16,10 @@ jobs: steps: - uses: actions/checkout@v6 - - uses: zoexx/github-action-json-file-properties@release - id: package_json - with: - file_path: "package.json" + - name: Update the version + if: startsWith(github.ref, 'refs/tags/') + run: | + sed -i 's|"version": "0.0.0"|"version": "${{ github.ref_name }}"|' package.json - uses: docker/metadata-action@v5 id: meta @@ -29,7 +29,7 @@ jobs: ghcr.io/${{ github.repository }} tags: | latest - ${{ steps.package_json.outputs.version }} + ${{ github.ref_name }} - name: "Login to Docker Hub" uses: docker/login-action@v3 diff --git a/package.json b/package.json index f7a99da..b1eb498 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "easylogon-web", "private": true, - "version": "2.0.7", + "version": "0.0.0", "type": "module", "scripts": { "dev": "vite",