chore(release): core 0.15.4 + starter/theme 2.1.2 + codemods 0.3.1 (W… #39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: release | |
| on: | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: write | |
| actions: write | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Enable corepack | |
| run: corepack enable | |
| # Versioning is manual (see AGENTS.md "Release Workflow"): a release is | |
| # a reviewed commit that bumps version files. This workflow only acts on | |
| # what is committed — it never decides versions itself. | |
| - name: Check version sources are in sync | |
| run: node scripts/check-versions.mjs | |
| - name: Publish npm packages not yet on the registry | |
| run: node scripts/publish-npm.mjs | |
| env: | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| # Tag pushes with GITHUB_TOKEN don't trigger `on: push: tags`, so the | |
| # script also dispatches the split workflows directly. | |
| - name: Tag mirrored packages and dispatch split workflows | |
| run: bash scripts/release-tags.sh | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |