Skip to content

Commit

Permalink
Merge pull request #640 from Financial-Times/remove-prerelease
Browse files Browse the repository at this point in the history
  • Loading branch information
apaleslimghost authored Jan 27, 2022
2 parents dc08ea8 + d0f1dc3 commit 14c68cd
Showing 1 changed file with 0 additions and 47 deletions.
47 changes: 0 additions & 47 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,6 @@ references:
branches:
ignore: /.*/

filters_prerelease_build: &filters_prerelease_build
tags:
only:
- /^x-[a-z-]+-v0\.\d+\.\d+(-\w+\.\d+)?$/
branches:
ignore: /.*/

filters_only_main: &filters_only_main
branches:
only:
Expand Down Expand Up @@ -133,30 +126,6 @@ jobs:
name: NPM publish
command: npx athloi publish -- --access=public

prerelease:
<<: *container_config_node
steps:
- *attach_workspace
- run:
name: shared-helper / npm-store-auth-token
command: .circleci/shared-helpers/helper-npm-store-auth-token
- run:
name: Extract tag name and version number
command: |
# https://circleci.com/docs/2.0/env-vars/#using-bash_env-to-set-environment-variables
export PRERELEASE_SEMVER='v0\.[0-9]{1,2}\.[0-9]{1,2}(-[a-z]+\.[0-9]+)?'
export TARGET_VERSION=$(echo $CIRCLE_TAG | grep -o -E $PRERELEASE_SEMVER);
export TARGET_MODULE=$(echo $CIRCLE_TAG | sed -E "s/-${PRERELEASE_SEMVER}//g");
echo "export TARGET_VERSION=$TARGET_VERSION" >> $BASH_ENV;
echo "export TARGET_MODULE=$TARGET_MODULE" >> $BASH_ENV;
echo "Creating prerelease ${TARGET_VERSION} for ${TARGET_MODULE}";
- run:
name: Bump version number
command: npx athloi -F ${TARGET_MODULE} version ${TARGET_VERSION};
- run:
name: NPM publish
command: npx athloi -F ${TARGET_MODULE} publish -- --access=public --tag=pre-release

deploy:
<<: *container_config_node
steps:
Expand Down Expand Up @@ -220,22 +189,6 @@ workflows:
requires:
- publish

build-test-prerelease:
jobs:
- build:
filters:
<<: *filters_prerelease_build
- test:
filters:
<<: *filters_prerelease_build
requires:
- build
- prerelease:
filters:
<<: *filters_prerelease_build
requires:
- test

notify:
webhooks:
- url: https://ft-next-webhooks.herokuapp.com/circleci2-workflow

0 comments on commit 14c68cd

Please sign in to comment.