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 d64f741 commit 9fcc50bCopy full SHA for 9fcc50b
.github/actions/npm-publish/action.yml
@@ -39,7 +39,8 @@ runs:
39
// @my-scope/my-pkg -> my-scope__my-pkg
40
const underlineName = pkg.name.replace(/@(.*)\/(.*)/, '$1__$2');
41
// @ref https://github.com/actions/toolkit/blob/457303960f03375db6f033e214b9f90d79c3fe5c/packages/github/src/context.ts
42
- pkg.name = context.payload.repository.owner.login + '/' + underlineName;
+ const owner = context.payload.repository.owner.login;
43
+ pkg.name = '@' + owner + '/' + underlineName;
44
const fs = require('fs');
45
fs.writeFileSync('package.json', JSON.stringify(pkg), 'utf8');
46
0 commit comments