From dc05bc04b1bc0e812dbb7881bfba574e35e28087 Mon Sep 17 00:00:00 2001 From: "Fred K. Schott" Date: Tue, 13 Sep 2022 14:56:16 -0700 Subject: [PATCH] Capture stderr in snapshot-release github action (#4747) * Update snapshot-release.yml * Update snapshot-release.yml * Update snapshot-release.yml --- .github/workflows/snapshot-release.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/snapshot-release.yml b/.github/workflows/snapshot-release.yml index 901848b6d..da37c4b52 100644 --- a/.github/workflows/snapshot-release.yml +++ b/.github/workflows/snapshot-release.yml @@ -58,6 +58,7 @@ jobs: uses: actions/setup-node@v3 with: node-version: 16 + registry-url: 'https://registry.npmjs.org' cache: 'pnpm' - name: Install dependencies @@ -68,14 +69,18 @@ jobs: - name: Bump Package Versions id: changesets - run: echo "::set-output name=result::$(npx changeset version --snapshot ${{ steps.getSnapshotName.outputs.result }})" + run: | + pnpm exec changeset version --snapshot ${{ steps.getSnapshotName.outputs.result }} > changesets.output.txt 2>&1 + echo ::set-output name=result::`cat changesets.output.txt` env: # Needs access to run the script GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Publish Release id: publish - run: echo "::set-output name=result::$(pnpm run release --tag next--${{ steps.getSnapshotName.outputs.result }})" + run: | + pnpm run release --tag next--${{ steps.getSnapshotName.outputs.result }} > publish.output.txt 2>&1 + echo ::set-output name=result::`cat publish.output.txt` env: # Needs access to publish to npm NPM_TOKEN: ${{ secrets.NPM_TOKEN }}