Loading .gitlab-ci.yml +4 −3 Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ variables: build: stage: build image: node:18-alpine3.15 image: node:14-bullseye rules: - if: $CI_COMMIT_TAG before_script: Loading @@ -20,9 +20,7 @@ build: - MAX_VERSION=$(node -p -e "require('./package.json').version") - ASSET="max-V${MAX_VERSION}.zip" - echo "ASSET = "$ASSET - ls ./tools - cd tools - ls ../ - ./build.sh - ls dist artifacts: Loading @@ -35,6 +33,9 @@ upload: rules: - if: $CI_COMMIT_TAG script: - MAX_VERSION=$(node -p -e "require('./package.json').version") - ASSET="max-V${MAX_VERSION}.zip" - echo "ASSET = "$ASSET - | curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file dist/${ASSET} "${PACKAGE_REGISTRY_URL}/${ASSET}" Loading Loading
.gitlab-ci.yml +4 −3 Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ variables: build: stage: build image: node:18-alpine3.15 image: node:14-bullseye rules: - if: $CI_COMMIT_TAG before_script: Loading @@ -20,9 +20,7 @@ build: - MAX_VERSION=$(node -p -e "require('./package.json').version") - ASSET="max-V${MAX_VERSION}.zip" - echo "ASSET = "$ASSET - ls ./tools - cd tools - ls ../ - ./build.sh - ls dist artifacts: Loading @@ -35,6 +33,9 @@ upload: rules: - if: $CI_COMMIT_TAG script: - MAX_VERSION=$(node -p -e "require('./package.json').version") - ASSET="max-V${MAX_VERSION}.zip" - echo "ASSET = "$ASSET - | curl --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file dist/${ASSET} "${PACKAGE_REGISTRY_URL}/${ASSET}" Loading