Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

Commit

Permalink
fix: store the add-on version in file
Browse files Browse the repository at this point in the history
fix: store the add-on version in the file
  • Loading branch information
arjunkhunti-cds committed Dec 28, 2020
2 parents 48a06ee + 251fdfd commit 7132dda
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ orbs:
name: Generate Addon
command: |
sudo apt install npm
npx -p @semantic-release/exec -p semantic-release semantic-release --dry-run --plugins "@semantic-release/commit-analyzer,@semantic-release/exec" --analyzeCommits @semantic-release/commit-analyzer --verifyRelease @semantic-release/exec --verifyReleaseCmd 'Version=$(grep "Release note" | grep -Po "(\d+.)+[develop]*.[\d]*")'
echo "" > nextRelease.txt
npx -p @semantic-release/exec -p semantic-release semantic-release --dry-run --plugins "@semantic-release/commit-analyzer,@semantic-release/exec" --analyzeCommits @semantic-release/commit-analyzer --verifyRelease @semantic-release/exec --verifyReleaseCmd 'echo ${nextRelease.version} > nextRelease.txt'
cat nextRelease.txt
echo "============"
Version=$(cat nextRelease.txt)
echo "$Version"
echo "============"
source ~/.venv/bin/activate
Expand Down Expand Up @@ -312,8 +315,7 @@ jobs:
- checkout
- run:
name: "Publish on GitHub"
command: |
npm install @semantic-release/git -D
command: |
npx semantic-release
publish-sbase:
Expand Down

0 comments on commit 7132dda

Please sign in to comment.