File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 8282 echo "RELEASE_PRERELEASE=false" >> "$GITHUB_ENV"
8383 node ./scripts/release-notes.js CHANGELOG.md release-notes.md
8484 else
85+ PACKAGE_VERSION="$(node -p "require('./package.json').version")"
8586 echo "RELEASE_TAG=edge" >> "$GITHUB_ENV"
8687 echo "RELEASE_TITLE=Copilot Cockpit edge" >> "$GITHUB_ENV"
8788 echo "RELEASE_PRERELEASE=true" >> "$GITHUB_ENV"
9192 echo "- Commit: ${GITHUB_SHA}"
9293 echo "- Source ref: ${GITHUB_REF_NAME}"
9394 echo "- Trigger: push"
94- echo "- Packaged from workspace version: $(node -p \"require('./package.json').version\") "
95+ echo "- Packaged from workspace version: ${PACKAGE_VERSION} "
9596 } > release-notes.md
9697 fi
9798
Original file line number Diff line number Diff line change @@ -181,6 +181,8 @@ suite("Release Pipeline Contract Tests", () => {
181181 assert . ok ( workflow . includes ( 'run: xvfb-run -a --server-args="-screen 0 1280x1024x24" npm test' ) ) ;
182182 assert . ok ( workflow . includes ( "RELEASE_TAG=edge" ) ) ;
183183 assert . ok ( workflow . includes ( "node ./scripts/release-notes.js CHANGELOG.md release-notes.md" ) ) ;
184+ assert . ok ( workflow . includes ( "PACKAGE_VERSION=\"$(node -p \"require('./package.json').version\")\"" ) ) ;
185+ assert . ok ( workflow . includes ( "echo \"- Packaged from workspace version: ${PACKAGE_VERSION}\"" ) ) ;
184186 assert . ok ( workflow . includes ( 'gh release view "${RELEASE_TAG}" >/dev/null 2>&1' ) ) ;
185187 assert . ok ( workflow . includes ( 'gh release upload "${RELEASE_TAG}" archive/vsix/latest/copilot-cockpit-*.vsix --clobber' ) ) ;
186188 assert . ok ( workflow . includes ( 'gh release edit "${RELEASE_TAG}" \\' ) ) ;
You can’t perform that action at this time.
0 commit comments