Skip to content

Commit

Permalink
add env GITHUB_TOKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
acao committed Aug 3, 2023
1 parent ece8dc3 commit b0b27ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,8 @@ jobs:
npm-token: ${{ secrets.NPM_TOKEN }}
npm-script: 'yarn release:canary'
changesets: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish a message
if: steps.canary.outputs.released == 'true'
uses: 'dotansimha/pr-comment@master'
Expand Down
2 changes: 1 addition & 1 deletion scripts/canary-release.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ async function updateVersions() {
const changesets = (await readChangesets(cwd)).filter(change =>
modifiedChangesets.includes(change.id),
);
const isMain = process.env.GITHUB_REF_NAME?.includes('main');
// const isMain = process.env.GITHUB_REF_NAME?.includes('main');

let vscodeRelease = false;

Expand Down

0 comments on commit b0b27ab

Please sign in to comment.