mirror of
https://github.com/expo/eas-cli.git
synced 2026-11-15 17:31:46 -10:00
* [ci] Version packages and generate changelogs with changesets PRs now add a changeset in .changeset/ instead of editing CHANGELOG.md. The manual release workflow runs scripts/src/versionPackages.ts, which runs `changeset version` for one fixed group of all packages, writes the root CHANGELOG.md section with the existing emoji categories, and then commits, tags, and pushes vX.Y.Z. The tag-driven publish is unchanged, except that it reads the changelog section from the tagged commit. The PR check validates changesets with @changesets/parse and rejects direct CHANGELOG.md edits. The "no changelog" label still skips it. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Correct "no changelog" documentation in .changeset/README.md * [ci] Fail on CHANGELOG.md edits even with the "no changelog" label Co-Authored-By: Claude Opus 5.5 <[email protected]> * [ci] Skip the changeset check for Dependabot PRs Dependabot PRs only update dependencies, so they need no changeset, and their read-only token cannot post the PR comment. The job skips both for them. The CHANGELOG.md check still runs. The workflow now sets explicit token permissions. Co-Authored-By: Claude Opus 5.5 <[email protected]> * Remove the "## main" block from CHANGELOG.md Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
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_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: |
|
|
# Fetch tags so that `git tag` fails if the new vX.Y.Z tag already exists
|
|
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
|
|
# The changesets in .changeset/ set the version bump.
|
|
yarn release
|