Skip to content

Commit

Permalink
Add no-verify-access for lerna
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Dec 4, 2021
1 parent e314019 commit 4dc9bba
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
14 changes: 8 additions & 6 deletions scripts/publish-native.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,14 @@ const cwd = process.cwd()
path.join(nativePackagesDir, platform, 'package.json'),
JSON.stringify(pkg, null, 2)
)
execSync(
`npm publish ${path.join(
nativePackagesDir,
platform
)} --access public --tag next-11`
)
// Publish failed after publishing swc packages so skip to allow
// retrying
// execSync(
// `npm publish ${path.join(
// nativePackagesDir,
// platform
// )} --access public --tag next-11`
// )
// lerna publish in next step will fail if git status is not clean
execSync(
`git update-index --skip-worktree ${path.join(
Expand Down
4 changes: 2 additions & 2 deletions scripts/publish-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ fi
if [[ $(git describe --exact-match 2> /dev/null || :) =~ -canary ]];
then
echo "Publishing canary"
yarn run lerna publish from-git --npm-tag canary --no-git-reset --yes
yarn run lerna publish from-git --npm-tag canary --no-git-reset --no-verify-access --yes

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

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

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

0 comments on commit 4dc9bba

Please sign in to comment.