Skip to content

Commit

Permalink
apply changes for publish
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Oct 27, 2022
1 parent e7208a1 commit 9ab1166
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_test_deploy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
on:
push:
branches: [canary]
branches: [canary, next-12-3-2]
pull_request:
types: [opened, synchronize]

Expand Down
3 changes: 2 additions & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"publish": {
"npmClient": "npm",
"allowBranch": [
"canary"
"canary",
"next-12-3-2"
],
"registry": "https://registry.npmjs.org/"
}
Expand Down
8 changes: 6 additions & 2 deletions scripts/publish-native.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ const cwd = process.cwd()
nativePackagesDir,
platform
)} --access public ${
gitref.includes('canary') ? ' --tag canary' : ''
gitref.includes('canary')
? ' --tag next-12-3-2'
: '--tag next-12-3-2'
}`
)
} catch (err) {
Expand Down Expand Up @@ -75,7 +77,9 @@ const cwd = process.cwd()
`npm publish ${path.join(
wasmDir,
`pkg-${wasmTarget}`
)} --access public ${gitref.includes('canary') ? ' --tag canary' : ''}`
)} --access public ${
gitref.includes('canary') ? ' --tag next-12-3-2' : '--tag next-12-3-2'
}`
)
}

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 --no-verify-access --yes
yarn run lerna publish from-git --npm-tag next-12-3-2 --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 --no-git-reset --no-verify-access --yes
yarn run lerna publish from-git --no-git-reset --npm-tag next-12-3-2 --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 9ab1166

Please sign in to comment.