mirror of
https://github.com/expo/eas-cli.git
synced 2026-11-15 17:31:46 -10:00
47 lines
1.4 KiB
YAML
47 lines
1.4 KiB
YAML
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
version:
|
|
type: string
|
|
required: false
|
|
description: 'Version number for the release'
|
|
dry_run:
|
|
type: boolean
|
|
required: true
|
|
default: true
|
|
description: 'Run the release in dry run mode, without pushing any changes'
|
|
|
|
name: Manually trigger a release
|
|
|
|
jobs:
|
|
release:
|
|
name: Trigger a release
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.EXPO_BOT_PAT }}
|
|
INPUT_VERSION: ${{ github.event.inputs.version }}
|
|
INPUT_DRY_RUN: ${{ github.event.inputs.dry_run }}
|
|
steps:
|
|
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
|
with:
|
|
ref: main
|
|
fetch-depth: 0
|
|
token: ${{ secrets.EXPO_BOT_PAT }}
|
|
- uses: ./.github/actions/setup-mise
|
|
- run: |
|
|
# Lerna will not detect changes correctly without having all tags
|
|
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
|
# Checkout the main branch
|
|
git checkout main
|
|
git config --global user.email "[email protected]"
|
|
git config --global user.name "Expo CI"
|
|
yarn install --immutable
|
|
yarn build
|
|
if [[ "$INPUT_VERSION" == "" ]]; then
|
|
echo "Releasing with default version"
|
|
yarn release
|
|
else
|
|
echo "Releasing with version $INPUT_VERSION"
|
|
yarn release $INPUT_VERSION
|
|
fi
|