Skip to content

Commit 4dc9bba

Browse files
committed
Add no-verify-access for lerna
1 parent e314019 commit 4dc9bba

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

scripts/publish-native.js

+8-6
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,14 @@ const cwd = process.cwd()
3333
path.join(nativePackagesDir, platform, 'package.json'),
3434
JSON.stringify(pkg, null, 2)
3535
)
36-
execSync(
37-
`npm publish ${path.join(
38-
nativePackagesDir,
39-
platform
40-
)} --access public --tag next-11`
41-
)
36+
// Publish failed after publishing swc packages so skip to allow
37+
// retrying
38+
// execSync(
39+
// `npm publish ${path.join(
40+
// nativePackagesDir,
41+
// platform
42+
// )} --access public --tag next-11`
43+
// )
4244
// lerna publish in next step will fail if git status is not clean
4345
execSync(
4446
`git update-index --skip-worktree ${path.join(

scripts/publish-release.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ fi
1515
if [[ $(git describe --exact-match 2> /dev/null || :) =~ -canary ]];
1616
then
1717
echo "Publishing canary"
18-
yarn run lerna publish from-git --npm-tag canary --no-git-reset --yes
18+
yarn run lerna publish from-git --npm-tag canary --no-git-reset --no-verify-access --yes
1919

2020
# Make sure to exit script with code 1 if publish failed
2121
if [[ ! $? -eq 0 ]];then
@@ -27,7 +27,7 @@ fi
2727

2828
if [[ ! $(git describe --exact-match 2> /dev/null || :) =~ -canary ]];then
2929
echo "Publishing stable"
30-
yarn run lerna publish from-git --npm-tag next-11 --no-git-reset --yes
30+
yarn run lerna publish from-git --npm-tag next-11 --no-git-reset --no-verify-access --yes
3131

3232
# Make sure to exit script with code 1 if publish failed
3333
if [[ ! $? -eq 0 ]];then

0 commit comments

Comments
 (0)