include: - project: "e-pilot/platform/epilot-ci" ref: "7.x.x" file: "gitlab/node/ci.cdk-spa.yml" variables: SERVICE_NAME: epilot360-icons STRATEGY: DEPLOYMENT # publish npm package when a semver tag is pushed npm:publish: stage: release needs: [] script: - echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc - yarn install --frozen-lockfile --cache-folder "$CI_PROJECT_DIR/.yarn-cache" --prefer-offline - npm publish rules: - if: $CI_COMMIT_TAG =~ /^v\d+.*/i # Under the atomic layout a tagged build already lands at // via # cdk (the deploy job) and the lambda promotes it to stable, so the legacy # publish-stable sync is redundant. Disable it. The stable e2e now depends on # the deploy job (which produces the stable deployment) instead of publish-stable. dev:publish-stable: rules: - when: never stag:publish-stable: rules: - when: never prod:publish-stable: rules: - when: never stag-stable:e2e: needs: - job: stag:deploy optional: true