--- include: - remote: https://jobs.just-ci.dev/v8.3.1/project-automation/generic.yaml variables: FIND_NEXT_RELEASE_RELEASERC: https://jobs.just-ci.dev/v8.3.1/project-automation/release/find-next-release.json FIND_NEXT_RELEASE_RELEASERC_FILENAME: .releaserc find-next-release: extends: .release:rules stage: build image: registry.gitlab.com/just-ci/images/node:alpine variables: NPM_PACKAGES: semantic-release @semantic-release/exec conventional-changelog-conventionalcommits script: - !reference [".release:install", script] - | if ! test -f "${FIND_NEXT_RELEASE_RELEASERC_FILENAME}"; then wget -O "${FIND_NEXT_RELEASE_RELEASERC_FILENAME}" "${FIND_NEXT_RELEASE_RELEASERC}" fi - semantic-release --dry-run --no-ci ${SEMANTIC_RELEASE_EXTRA_ARGS} - echo "TBUMP_NEXT_VERSION=$(cat .VERSION 2>/dev/null || echo "[!] No new release" 1>&2)" > TBUMP_NEXT_VERSION.env artifacts: reports: dotenv: TBUMP_NEXT_VERSION.env