Skip to content

Commit ac8f470

Browse files
ci(publish): use npm and login with 2fa
1 parent 290e3f6 commit ac8f470

2 files changed

Lines changed: 1 addition & 2 deletions

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": "yarn build && cd out && yarn npm publish"
34+
"publish": "yarn build && cd out && npm login && npm publish"
3535
},
3636
"nyc": {
3737
"include": "src"

scripts/release-prep.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ sourceObj.types = 'declarations/index.d.ts'
1818

1919
fs.writeFileSync(__dirname + '/../out/package.json', Buffer.from(JSON.stringify(sourceObj, null, 2), 'utf-8'))
2020
fs.writeFileSync(__dirname + '/../out/version.txt', Buffer.from(sourceObj.version, 'utf-8'))
21-
fs.writeFileSync(__dirname + '/../out/yarn.lock', '')
2221

2322
fs.cpSync(__dirname + '/../typings', __dirname + '/../out/declarations', { recursive: true })
2423
fs.copyFileSync(__dirname + '/../LICENSE', __dirname + '/../out/LICENSE')

0 commit comments

Comments
 (0)