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:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- uses: zoexx/github-action-json-file-properties@release
|
- name: Update the version
|
||||||
id: package_json
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
with:
|
run: |
|
||||||
file_path: "package.json"
|
sed -i 's|"version": "0.0.0"|"version": "${{ github.ref_name }}"|' package.json
|
||||||
|
|
||||||
- uses: docker/metadata-action@v5
|
- uses: docker/metadata-action@v5
|
||||||
id: meta
|
id: meta
|
||||||
@@ -29,7 +29,7 @@ jobs:
|
|||||||
ghcr.io/${{ github.repository }}
|
ghcr.io/${{ github.repository }}
|
||||||
tags: |
|
tags: |
|
||||||
latest
|
latest
|
||||||
${{ steps.package_json.outputs.version }}
|
${{ github.ref_name }}
|
||||||
|
|
||||||
- name: "Login to Docker Hub"
|
- name: "Login to Docker Hub"
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "easylogon-web",
|
"name": "easylogon-web",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "2.0.7",
|
"version": "0.0.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
|||||||
Reference in New Issue
Block a user