From bb05356c247efdff0309c4d49d36968f16a0f81b Mon Sep 17 00:00:00 2001 From: Duncan Kolba Date: Tue, 26 Jul 2022 16:28:20 +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/publish-release.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 34bc233..eb69a71 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -54,12 +54,18 @@ jobs: - name: 🔄 Init Cache uses: ./.github/actions/npm-cache - - name: Publish stable packages + - name: Set the Env run: | SEMVER_VERSION=$(npx find-versions-cli ${{ github.event.release.tag_name }}) 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 "VALID_SEMVER_VERSION=$(echo $VALID_SEMVER_VERSION)" >> $GITHUB_ENV + + - name: Publish stable packages + run: | + echo "version is:" + echo ${{env.VALID_SEMVER_VERSION }} npm version --no-git-tag-version ${{ env.VALID_SEMVER_VERSION }} --workspace=@ci-cd/abcd npm run publish:abcd