Skip to content

Commit efb04a1

Browse files
ci(publish): copy .npmrc to out before publish
1 parent a9d402f commit efb04a1

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"docs:test": "yarn workspace docusaurus start",
3232
"lint": "eslint .",
3333
"build": "rimraf -- ./out/ ./typings/ && tsc --project tsconfig.build.json && ts-node ./scripts/release-prep.ts",
34-
"publish": "cross-env-shell \"yarn build && cd out && npm login && npm publish --otp $NPM_TOKEN\""
34+
"publish": "cross-env-shell \"yarn build && cd out && npm login && npm publish\""
3535
},
3636
"nyc": {
3737
"include": "src"

scripts/release-prep.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ fs.writeFileSync(__dirname + '/../out/package.json', Buffer.from(JSON.stringify(
2020
fs.writeFileSync(__dirname + '/../out/version.txt', Buffer.from(sourceObj.version, 'utf-8'))
2121

2222
fs.cpSync(__dirname + '/../typings', __dirname + '/../out/declarations', { recursive: true })
23+
fs.copyFileSync(__dirname + '/../.npmrc', __dirname + '/../out/.npmrc')
2324
fs.copyFileSync(__dirname + '/../LICENSE', __dirname + '/../out/LICENSE')
2425
fs.copyFileSync(__dirname + '/../README.md', __dirname + '/../out/README.md')
2526
fs.copyFileSync(__dirname + '/../SECURITY.md', __dirname + '/../out/SECURITY.md')

0 commit comments

Comments
 (0)