chore: upgrade nestjs to v11 and improve infrastructure (#1212) #1
This file contains 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'] | ||
paths: | ||
- '.changeset/**' | ||
- 'CHANGELOG.md' | ||
pull_request: | ||
branches: ['main'] | ||
paths: | ||
- '.changeset/**' | ||
- 'CHANGELOG.md' | ||
workflow_dispatch: | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
concurrency: | ||
group: release-${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
coverage: | ||
uses: ./.github/workflows/coverage.yml | ||
Check failure on line 26 in .github/workflows/publish.yml
|
||
release: | ||
needs: [coverage] | ||
runs-on: ubuntu-latest | ||
environment: production | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Build Environment | ||
uses: ./.github/actions/ci-setup | ||
- name: Check for changesets | ||
run: pnpm changeset status --since=main | ||
- name: Build | ||
run: pnpm run build | ||
- name: Create Release Pull Request or Publish | ||
id: changesets | ||
uses: changesets/action@v1 | ||
with: | ||
publish: pnpm run release | ||
commit: "chore: version packages" | ||
title: "chore: version packages" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |