apply changes for publish

parent e7208a12
on: on:
push: push:
branches: [canary] branches: [canary, next-12-3-2]
pull_request: pull_request:
types: [opened, synchronize] types: [opened, synchronize]
......
...@@ -11,7 +11,8 @@ ...@@ -11,7 +11,8 @@
"publish": { "publish": {
"npmClient": "npm", "npmClient": "npm",
"allowBranch": [ "allowBranch": [
"canary" "canary",
"next-12-3-2"
], ],
"registry": "https://registry.npmjs.org/" "registry": "https://registry.npmjs.org/"
} }
......
...@@ -40,7 +40,9 @@ const cwd = process.cwd() ...@@ -40,7 +40,9 @@ const cwd = process.cwd()
nativePackagesDir, nativePackagesDir,
platform platform
)} --access public ${ )} --access public ${
gitref.includes('canary') ? ' --tag canary' : '' gitref.includes('canary')
? ' --tag next-12-3-2'
: '--tag next-12-3-2'
}` }`
) )
} catch (err) { } catch (err) {
...@@ -75,7 +77,9 @@ const cwd = process.cwd() ...@@ -75,7 +77,9 @@ const cwd = process.cwd()
`npm publish ${path.join( `npm publish ${path.join(
wasmDir, wasmDir,
`pkg-${wasmTarget}` `pkg-${wasmTarget}`
)} --access public ${gitref.includes('canary') ? ' --tag canary' : ''}` )} --access public ${
gitref.includes('canary') ? ' --tag next-12-3-2' : '--tag next-12-3-2'
}`
) )
} }
......
...@@ -15,7 +15,7 @@ fi ...@@ -15,7 +15,7 @@ fi
if [[ $(git describe --exact-match 2> /dev/null || :) =~ -canary ]]; if [[ $(git describe --exact-match 2> /dev/null || :) =~ -canary ]];
then then
echo "Publishing canary" 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 # Make sure to exit script with code 1 if publish failed
if [[ ! $? -eq 0 ]];then if [[ ! $? -eq 0 ]];then
...@@ -27,7 +27,7 @@ fi ...@@ -27,7 +27,7 @@ fi
if [[ ! $(git describe --exact-match 2> /dev/null || :) =~ -canary ]];then if [[ ! $(git describe --exact-match 2> /dev/null || :) =~ -canary ]];then
echo "Publishing stable" 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 # Make sure to exit script with code 1 if publish failed
if [[ ! $? -eq 0 ]];then if [[ ! $? -eq 0 ]];then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment