Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wisdom-components
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
wisdom-components
Commits
0d994076
Commit
0d994076
authored
Oct 25, 2020
by
邓晓峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix userRegistry
parent
b0a70336
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
release.js
scripts/release.js
+9
-5
No files found.
scripts/release.js
View file @
0d994076
...
@@ -40,11 +40,16 @@ async function release() {
...
@@ -40,11 +40,16 @@ async function release() {
if
(
userRegistry
.
includes
(
'https://registry.yarnpkg.com/'
))
{
if
(
userRegistry
.
includes
(
'https://registry.yarnpkg.com/'
))
{
printErrorAndExit
(
`Release failed, please use
${
chalk
.
blue
(
'npm run release'
)}
.`
);
printErrorAndExit
(
`Release failed, please use
${
chalk
.
blue
(
'npm run release'
)}
.`
);
}
}
if
(
!
userRegistry
.
includes
(
'https://registry.npmjs.org/'
))
{
//https://g.civnet.cn:4873
const
registry
=
chalk
.
blue
(
'https://registry.npmjs.org/'
);
// if (!userRegistry.includes('https://registry.npmjs.org/')) {
// const registry = chalk.blue('https://registry.npmjs.org/');
// printErrorAndExit(`Release failed, npm registry must be ${registry}.`);
// }
if
(
!
userRegistry
.
includes
(
'https://g.civnet.cn:4873/'
))
{
const
registry
=
chalk
.
blue
(
'https://g.civnet.cn:4873/'
);
printErrorAndExit
(
`Release failed, npm registry must be
${
registry
}
.`
);
printErrorAndExit
(
`Release failed, npm registry must be
${
registry
}
.`
);
}
}
let
updated
=
null
;
let
updated
=
null
;
if
(
!
args
.
publishOnly
)
{
if
(
!
args
.
publishOnly
)
{
...
@@ -140,4 +145,4 @@ async function release() {
...
@@ -140,4 +145,4 @@ async function release() {
release
().
catch
((
err
)
=>
{
release
().
catch
((
err
)
=>
{
console
.
error
(
err
);
console
.
error
(
err
);
process
.
exit
(
1
);
process
.
exit
(
1
);
});
});
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment