Skip to content

Commit

Permalink
Update snapshot-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
FredKSchott authored Sep 12, 2022
1 parent a67b288 commit 9ea61fd
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/snapshot-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,19 +62,22 @@ jobs:
return splitComment[1].trim();
result-encoding: string

- 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 }}
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 }}
env:
# Needs access to publish to npm
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# - name: Publish Release
# id: publish
# run: 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
uses: actions/github-script@v6
Expand All @@ -83,7 +86,7 @@ jobs:
MESSAGE: ${{ steps.changesets.outputs.publish }}
with:
script: |
console.log(process.env);
console.log(process.env.ISSUE_NUMBER, process.env.MESSAGE);
github.rest.issues.createComment({
issue_number: process.env.ISSUE_NUMBER,
owner: context.repo.owner,
Expand Down

0 comments on commit 9ea61fd

Please sign in to comment.