0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-30 22:03:56 -05:00

Update snapshot-release.yml

This commit is contained in:
Fred K. Schott 2022-09-12 14:43:45 -07:00 committed by GitHub
parent 9558e2c810
commit 49006da077
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,19 +60,16 @@ jobs:
- name: Build Packages
run: pnpm run build
- name: Get result
run: echo "${{steps.set-result.outputs.result}}"
- name: Bump Package Versions
id: changesets
run: npx changeset version --snapshot ${{ steps.getSnapshotName.outputs.result }}
run: echo "::set-output name=result::$(npx changeset version --snapshot ${{ steps.getSnapshotName.outputs.result }})"
env:
# Needs access to run the script
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Publish Release
# id: publish
# run: pnpm run release --tag next--${{ steps.getSnapshotName.outputs.result }}
# run: echo "::set-output name=result::$(pnpm run release --tag next--${{ steps.getSnapshotName.outputs.result }})"
# env:
# # Needs access to publish to npm
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
@ -80,7 +77,7 @@ jobs:
- name: Pull Request Notification
uses: actions/github-script@v6
env:
MESSAGE: ${{ steps.changesets.outputs.publish }}
MESSAGE: ${{ steps.changesets.outputs.result }}
with:
script: |
console.log(process.env.MESSAGE);