From 77fb82f7602c4c3d7b33cd8c5874f4f74e0a6677 Mon Sep 17 00:00:00 2001 From: Duncan Kolba Date: Tue, 26 Jul 2022 16:09:19 +0200 Subject: [PATCH] =?UTF-8?q?ci:=20=F0=9F=8E=A1=20WIP=20package=20publishing?= =?UTF-8?q?=20in=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/changelog.yml | 4 +++- .github/workflows/publish-release.yml | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 69bf1f3..bbcf5c2 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -13,7 +13,9 @@ jobs: - name: Create changelog run: | - echo "CHANGELOG_TEXT=$(npx conventional-changelog-cli -h -p angular -r 0)" >> $GITHUB_ENV + echo 'CHANGELOG_TEXT<> $GITHUB_ENV + npx conventional-changelog-cli -h -p angular -r 0) >> $GITHUB_ENV + echo 'EOF' >> $GITHUB_ENV - uses: actions/github-script@v6 with: diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index b50dc15..34bc233 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -60,8 +60,7 @@ jobs: VALID_SEMVER_VERSION=$(node scripts/version-helper.js $SEMVER_VERSION) echo "Semver stable version unclean $SEMVER_VERSION" echo "Semver stable version valid $VALID_SEMVER_VERSION" - echo "CHANGELOG_TEXT=$(npx conventional-changelog-cli)" >> $GITHUB_ENV - npm version --no-git-tag-version 0.0.22 --workspace=@ci-cd/abcd + npm version --no-git-tag-version ${{ env.VALID_SEMVER_VERSION }} --workspace=@ci-cd/abcd npm run publish:abcd publishnextgithub: