This commit is contained in:
@@ -15,7 +15,7 @@ steps:
|
|||||||
image: *git_image
|
image: *git_image
|
||||||
commands: |
|
commands: |
|
||||||
pwd
|
pwd
|
||||||
ls
|
ls -als
|
||||||
rm -rf dist
|
rm -rf dist
|
||||||
rm -f ${CI_WORKSPACE}/version.env
|
rm -f ${CI_WORKSPACE}/version.env
|
||||||
echo "✅ Nettoyage terminé"
|
echo "✅ Nettoyage terminé"
|
||||||
@@ -26,7 +26,7 @@ steps:
|
|||||||
image: *git_image
|
image: *git_image
|
||||||
commands: |
|
commands: |
|
||||||
pwd
|
pwd
|
||||||
ls
|
ls -als
|
||||||
COMMIT_MSG=$(git log -1 --pretty=%B)
|
COMMIT_MSG=$(git log -1 --pretty=%B)
|
||||||
echo "📝 Message: $COMMIT_MSG"
|
echo "📝 Message: $COMMIT_MSG"
|
||||||
|
|
||||||
@@ -49,6 +49,8 @@ steps:
|
|||||||
- name: update_version
|
- name: update_version
|
||||||
image: *node_image
|
image: *node_image
|
||||||
commands: |
|
commands: |
|
||||||
|
pwd
|
||||||
|
ls -als
|
||||||
npm ci --cache .npm --prefer-offline
|
npm ci --cache .npm --prefer-offline
|
||||||
source ${CI_WORKSPACE}/version.env
|
source ${CI_WORKSPACE}/version.env
|
||||||
|
|
||||||
@@ -71,6 +73,8 @@ steps:
|
|||||||
- name: build
|
- name: build
|
||||||
image: *node_image
|
image: *node_image
|
||||||
commands: |
|
commands: |
|
||||||
|
pwd
|
||||||
|
ls -als
|
||||||
npm ci --cache .npm --prefer-offline
|
npm ci --cache .npm --prefer-offline
|
||||||
npm run build
|
npm run build
|
||||||
depends_on: [ update_version ]
|
depends_on: [ update_version ]
|
||||||
@@ -79,6 +83,8 @@ steps:
|
|||||||
- name: package
|
- name: package
|
||||||
image: *node_image
|
image: *node_image
|
||||||
commands: |
|
commands: |
|
||||||
|
pwd
|
||||||
|
ls -als
|
||||||
source ${CI_WORKSPACE}/version.env
|
source ${CI_WORKSPACE}/version.env
|
||||||
|
|
||||||
if [ "$version_type" != "none" ]; then
|
if [ "$version_type" != "none" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user