summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Fred K. Schott <fkschott@gmail.com> 2022-09-13 14:56:16 -0700
committerGravatar GitHub <noreply@github.com> 2022-09-13 14:56:16 -0700
commitdc05bc04b1bc0e812dbb7881bfba574e35e28087 (patch)
treecfce169d70452e36877261522a4db9685cc082d1
parente73d2d14c61a9ccf92a261fedf4e9f4eaccf7b6e (diff)
downloadastro-dc05bc04b1bc0e812dbb7881bfba574e35e28087.tar.gz
astro-dc05bc04b1bc0e812dbb7881bfba574e35e28087.tar.zst
astro-dc05bc04b1bc0e812dbb7881bfba574e35e28087.zip
Capture stderr in snapshot-release github action (#4747)
* Update snapshot-release.yml * Update snapshot-release.yml * Update snapshot-release.yml
Diffstat (limited to '')
-rw-r--r--.github/workflows/snapshot-release.yml9
1 files 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 }}