diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3466de1f3..e3e6b6560 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -73,7 +73,7 @@ jobs: cat semantic-release-output.log exit 1 fi - tagFormat=$(jq -r .tagFormat .releaserc) + tagFormat=$(node -e "const config=require('./release.config.js'); console.log(config.tagFormat)") if [ "${tagFormat}" = "null" ] then tagFormat="v\${version}" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0e161fac3..68a5fae14 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -64,7 +64,7 @@ jobs: id: output_version_tag run: | NEXT_VERSION=$(npx semantic-release --dry-run | grep -i 'The next release version is' | sed -E 's/.* ([[:digit:].]+)$/\1/') - tagFormat=$(jq -r .tagFormat .releaserc) + tagFormat=$(node -e "const config=require('./release.config.js'); console.log(config.tagFormat)") if [ "${tagFormat}" = "null" ] then tagFormat="v\${version}"