Skip to content

Commit

Permalink
Capture stderr in snapshot-release github action (withastro#4747)
Browse files Browse the repository at this point in the history
* Update snapshot-release.yml

* Update snapshot-release.yml

* Update snapshot-release.yml
  • Loading branch information
FredKSchott committed Sep 13, 2022
1 parent e73d2d1 commit dc05bc0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/snapshot-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand Down

0 comments on commit dc05bc0

Please sign in to comment.