Skip to content

Commit

Permalink
ci: improve comment on canary releases (#3486)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed Feb 7, 2022
1 parent 2cf38ca commit bba149c
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/canary.yaml
Expand Up @@ -91,15 +91,17 @@ jobs:
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const npmTag = process.env.NPM_TAG;
const npmVersion = process.env.NPM_VERSION;
const npmURL = 'https://www.npmjs.com/package/graphql/v/' + npmVersion;
github.rest.issues.createComment({
issue_number: process.env.PR_NUMBER,
owner: context.repo.owner,
repo: context.repo.repo,
body:
`The latest changes of this PR are available as ['graphql@${npmVersion}'](${npmURL}) on NPM.\n` +
'**Note: no gurantees provided so please use your own discretion.**\n\n' +
`Also you can depend on latest version built from this PR: \`npm install --save graphql@${npmTag}\`.`,
body: process.env.COMMENT_BODY,
})
env:
COMMENT_BODY: |
The latest changes of this PR are available on NPM as
[graphql@${{env.NPM_VERSION}}](https://www.npmjs.com/package/graphql/v/${{env.NPM_VERSION}})
**Note: no gurantees provided so please use your own discretion.**
Also you can depend on latest version built from this PR:
`npm install --save graphql@${{env.NPM_TAG}}`

0 comments on commit bba149c

Please sign in to comment.