Skip to content

Commit bba149c

Browse files
ci: improve comment on canary releases (#3486)
1 parent 2cf38ca commit bba149c

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/canary.yaml

+9-7
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,17 @@ jobs:
9191
with:
9292
github-token: ${{secrets.GITHUB_TOKEN}}
9393
script: |
94-
const npmTag = process.env.NPM_TAG;
95-
const npmVersion = process.env.NPM_VERSION;
96-
const npmURL = 'https://www.npmjs.com/package/graphql/v/' + npmVersion;
9794
github.rest.issues.createComment({
9895
issue_number: process.env.PR_NUMBER,
9996
owner: context.repo.owner,
10097
repo: context.repo.repo,
101-
body:
102-
`The latest changes of this PR are available as ['graphql@${npmVersion}'](${npmURL}) on NPM.\n` +
103-
'**Note: no gurantees provided so please use your own discretion.**\n\n' +
104-
`Also you can depend on latest version built from this PR: \`npm install --save graphql@${npmTag}\`.`,
98+
body: process.env.COMMENT_BODY,
10599
})
100+
env:
101+
COMMENT_BODY: |
102+
The latest changes of this PR are available on NPM as
103+
[graphql@${{env.NPM_VERSION}}](https://www.npmjs.com/package/graphql/v/${{env.NPM_VERSION}})
104+
**Note: no gurantees provided so please use your own discretion.**
105+
106+
Also you can depend on latest version built from this PR:
107+
`npm install --save graphql@${{env.NPM_TAG}}`

0 commit comments

Comments
 (0)