Skip to content

Commit

Permalink
fix: checkout code, add semantic release dry run to dev to be safer t…
Browse files Browse the repository at this point in the history
…hat it runs through
  • Loading branch information
bastiandoetsch committed May 30, 2023
1 parent 8a829c0 commit 49cc6a7
Showing 1 changed file with 24 additions and 10 deletions.
34 changes: 24 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,34 @@ commands:
mv "${TMP_SRC_DIR}/"* "${ORB_DIR}/"
rm -rf "${TMP_SRC_DIR}"
semantic_release_dry_run:
description: Run semantic-release in --dry-run mode to capture info about next release version
steps:
- run:
name: Run semantic release in dry-run mode
command: |
npx -p @semantic-release/git@10.0.1 -p semantic-release@21.0.2 semantic-release --branches ${CIRCLE_BRANCH} --dry-run
check_node:
description: Check node environment
steps:
- run:
name: Check Node environment
command: |
echo node version: $(node --version)
echo npx version: $(npx --version)
jobs:
# This deploys a dev version
deploy-to-dev:
<<: *defaults
steps:
- checkout
- attach_workspace:
at: ~/repo
- node/install
- check_node
- semantic_release_dry_run
- install_cci_cli
- untar_orb
- run:
Expand All @@ -62,18 +83,15 @@ jobs:
prod-release:
<<: *defaults
steps:
- checkout
- attach_workspace:
at: ~/repo
- run:
name: See files after attach_workspace
command: |
ls -la
- node/install
- run:
name: Check Node environment
command: |
echo node version: $(node --version)
echo npx version: $(npx --version)
- check_node
- install_cci_cli
- untar_orb
- run:
Expand All @@ -85,11 +103,7 @@ jobs:
command: |
mkdir ~/.ssh
ssh-keyscan github.com > ~/.ssh/known_hosts
- run:
name: Run semantic-release in --dry-run mode to capture info about next release version
command: |
npx -p @semantic-release/git@10.0.1 -p semantic-release@21.0.2 semantic-release --branches ${CIRCLE_BRANCH} --dry-run > sem-rel-dry-run.txt
cat sem-rel-dry-run.txt
- semantic_release_dry_run
- run:
name: Update Version and Release
command: |
Expand Down

0 comments on commit 49cc6a7

Please sign in to comment.