Skip to content

Commit

Permalink
feat: 写入npmrc
Browse files Browse the repository at this point in the history
  • Loading branch information
novlan1 committed Oct 8, 2022
1 parent 812b1c6 commit 67d43a0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,4 @@ repo/


ignore-tmp-data/
.npmrc
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
"lint:fix": "eslint --fix --ext .js,.ts,.tsx,.jsx,.vue .",
"changelog": "gulp changelog",
"version": "yarn changelog && git add CHANGELOG.md",
"release": "yarn test && yarn build && np --no-cleanup --yolo --any-branch",
"release": "yarn npm:token && yarn test && yarn build && np --no-cleanup --yolo --any-branch",
"npm:token": "node script/npm-token.js",
"prepare": "husky install"
},
"devDependencies": {
Expand Down
3 changes: 3 additions & 0 deletions script/npm-token.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const { writeEnvTokenToNpmRC } = require('../lib/index');

writeEnvTokenToNpmRC();

0 comments on commit 67d43a0

Please sign in to comment.