Skip to content

Commit

Permalink
test to specify branch/channel
Browse files Browse the repository at this point in the history
  • Loading branch information
OverGlass committed Jul 25, 2024
1 parent 07d0d81 commit b31dacd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/scripts/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {program} from "commander";
const branchName = process.env.BRANCH_NAME
const appStoreBundleId = process.env.APP_STORE_BUNDLE_ID
const refType = process.env.REF_TYPE // -> can be tag or branch, @see https://docs.github.com/en/actions/learn-github-actions/contexts
const branch = process.env.EAS_BUILD_PROFILE
/*******************************/

const aExec = promisify(exec)
Expand All @@ -29,7 +30,7 @@ const __dirname = path.dirname(__filename)
async function actionHandler() {

const expoCommandBase = `eas build --platform all --non-interactive --no-wait`
const expoUpdateCommandBase = `eas update --auto`
const expoUpdateCommandBase = `eas update --branch ${branch} --auto`

const {stdout: appStoreVersion, stderr: error1} = await aExec(
`node ${__dirname}/readAppVersion.mjs -i ${appStoreBundleId}`
Expand Down

0 comments on commit b31dacd

Please sign in to comment.