/
githubmirror
/
trpc
Обзор
Документация
Войти
/
githubmirror
/
trpc
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
.github/workflows/release-manual.yml
86 строк
2 KB
Nick Lucas
chore: Consolidate release workflows (#7251)
15 мар 2026, 19:26
Не верифицирован
15 мар 2026, 19:26
929561d
Код
Авторство
О чём код?
name: Release Packages env: TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} TURBO_TEAM: ${{ vars.TURBO_TEAM }} NPM_CONFIG_PROVENANCE: true permissions: contents: write # For fixing formatting id-token: write # For OIDC publishing pull-requests: write # For creating release PRs on: workflow_dispatch: inputs: dist_tag: description: 'NPM distribution tag' required: true type: choice default: 'latest' options: - 'latest' - 'canary' version_bump: description: 'Version bump type' required: true type: choice options: - 'patch' - 'minor' push: branches: - 'main' paths: - '.github/setup/*' - '.github/workflows/release-manual.yml' - 'packages/**' - '!packages/**/package.json' - '!packages/test/**' jobs: publish: if: github.event_name == 'workflow_dispatch' && inputs.dist_tag == 'latest' timeout-minutes: 10 runs-on: ubuntu-latest steps: - name: Checkout repo uses: actions/checkout@v6 with: fetch-depth: 0 token: ${{ secrets.ACCESS_TOKEN }} - name: Configure git run: | git config --global user.email "github-actions[bot]@users.noreply.github.com" git config --global user.name "github-actions[bot]" - uses: ./.github/setup - run: pnpm add -g npm@latest # For OIDC publishing - name: Publish packages run: | pnpm lerna publish ${{ inputs.version_bump }} --force-publish --dist-tag ${{ inputs.dist_tag }} --yes publish-canary: if: github.event_name == 'push' || inputs.dist_tag == 'canary' timeout-minutes: 10 runs-on: ubuntu-latest steps: - name: Checkout repo uses: actions/checkout@v6 with: fetch-depth: 0 token: ${{ secrets.ACCESS_TOKEN }} - name: Configure git run: | git config --global user.email "github-actions[bot]@users.noreply.github.com" git config --global user.name "github-actions[bot]" - uses: ./.github/setup - run: pnpm add -g npm@latest # For OIDC publishing - run: pnpm lerna publish --force-publish --canary --preid canary --dist-tag canary --yes