mirror of
https://github.com/XFox111/easylogon-web.git
synced 2026-07-02 19:52:45 +03:00
chore(ci): pipeline now pulls the version from release tag
This commit is contained in:
@@ -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
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "easylogon-web",
|
||||
"private": true,
|
||||
"version": "2.0.7",
|
||||
"version": "0.0.0",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
Reference in New Issue
Block a user