We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23b1367 commit ae10697Copy full SHA for ae10697
.github/actions/npm-publish/action.yml
@@ -38,7 +38,8 @@ runs:
38
// my-pkg -> my-pkg
39
// @my-scope/my-pkg -> my-scope__my-pkg
40
const underlineName = pkg.name.replace(/@(.*)\/(.*)/, '$1__$2');
41
- pkg.name = github.repository_owner + '/' + underlineName;
+ // @ref https://github.com/actions/toolkit/blob/457303960f03375db6f033e214b9f90d79c3fe5c/packages/github/src/context.ts
42
+ pkg.name = context.payload.repository.owner.login + '/' + underlineName;
43
const fs = require('fs');
44
fs.writeFileSync('package.json', JSON.stringify(pkg));
45
0 commit comments