File tree 1 file changed +9
-7
lines changed
1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -91,15 +91,17 @@ jobs:
91
91
with :
92
92
github-token : ${{secrets.GITHUB_TOKEN}}
93
93
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;
97
94
github.rest.issues.createComment({
98
95
issue_number: process.env.PR_NUMBER,
99
96
owner: context.repo.owner,
100
97
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,
105
99
})
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}}`
You can’t perform that action at this time.
0 commit comments