chore: fix snapshot release
This commit is contained in:
parent
b9e73b4b0d
commit
cba18e172f
1 changed files with 2 additions and 5 deletions
7
.github/workflows/snapshot-release.yml
vendored
7
.github/workflows/snapshot-release.yml
vendored
|
@ -11,6 +11,7 @@ defaults:
|
||||||
env:
|
env:
|
||||||
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
|
||||||
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
|
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
|
||||||
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
FORCE_COLOR: true
|
FORCE_COLOR: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -76,9 +77,6 @@ jobs:
|
||||||
- name: Publish Release
|
- name: Publish Release
|
||||||
id: publish
|
id: publish
|
||||||
run: echo "::set-output name=result::$(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 }}
|
|
||||||
|
|
||||||
- name: Pull Request Notification
|
- name: Pull Request Notification
|
||||||
uses: actions/github-script@v6
|
uses: actions/github-script@v6
|
||||||
|
@ -86,10 +84,9 @@ jobs:
|
||||||
MESSAGE: ${{ steps.publish.outputs.result }}
|
MESSAGE: ${{ steps.publish.outputs.result }}
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
console.log(process.env.MESSAGE);
|
|
||||||
github.rest.issues.createComment({
|
github.rest.issues.createComment({
|
||||||
issue_number: context.issue.number,
|
issue_number: context.issue.number,
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
body: '```\n' + process.env.MESSAGE + '\n```',
|
body: '```\n' + process.env.MESSAGE || 'Something went wrong!' + '\n```',
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue