Skip to content

Version Packages 2.62.0 (#3946) #2937

Version Packages 2.62.0 (#3946)

Version Packages 2.62.0 (#3946) #2937

Workflow file for this run

name: Release
env:
DO_NOT_TRACK: 1
on:
push:
branches:
- main
- release/*
- next
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Release
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/') }}
permissions:
contents: write
pull-requests: write
id-token: write
steps:
- name: Checkout Repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup PNPM
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0
- name: Setup Node.js environment
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 24
registry-url: 'https://registry.npmjs.org'
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Publish packages
run: pnpm ci:publish
- name: Save publish data
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: published-packages
path: pnpm-publish-summary.json
snapshot:
name: Snapshot
needs: release
if: ${{ !failure() && !cancelled() }}
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Checkout Repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup PNPM
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0
- name: Setup Node.js environment
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 24
registry-url: 'https://registry.npmjs.org'
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Build code
run: pnpm exec turbo run build
- name: Update versions for snapshots
run: pnpm exec changeset version --snapshot ${GITHUB_REF_NAME//\//__}
- name: Make sure code is up to date
run: pnpm exec turbo run postVersioning
- name: Rebuild things
run: pnpm exec turbo run build
- name: Publish results
run: pnpm exec changeset publish --no-git-tag --tag next-${GITHUB_REF_NAME//\//__}