Skip to content
Snippets Groups Projects
Commit 0fbae1db authored by Jacopo Gasparetto's avatar Jacopo Gasparetto
Browse files

fix(ci-cd): packagename.txt not found and build artifact not uploaded

parent b2fa3dd3
No related branches found
No related tags found
1 merge request!5feat(ci-cd): add semantic versioning to frontend package
Pipeline #99982 passed
......@@ -59,17 +59,18 @@ build-frontend:
before_script:
- apt update && apt install -y jq
- VERSION="$(cat version.txt)"
- cd frontend
- PACKAGENAME="$(jq '.name' package.json)"
- echo "$(jq '.version="${VERSION}"' package.json)" > package.json
- PACKAGENAME="$(jq '.name' frontend/package.json)"
- echo "$(jq '.version="${VERSION}"' frontend/package.json)" > frontend/package.json
- echo $PACKAGENAME > packagename.txt
- cd frontend
script:
- npm ci
- npm run build
- npm run compress
artifacts:
paths:
- frontend/${PACKAGENAME}_v{VERSION}.tar.gz
- packagename.txt
- frontend/${PACKAGENAME}_v${VERSION}.tar.gz
only:
changes:
- .gitlab-ci.yml
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment