Merge branch 'next' of github.com:statelyai/agent into next #145
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: | |
| - next | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: {} # each job defines its own permissions explicitly | |
| jobs: | |
| version: | |
| name: Version | |
| if: github.repository == 'statelyai/agent' | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| outputs: | |
| hasChangesets: ${{ steps.changesets.outputs.hasChangesets }} | |
| permissions: | |
| contents: write # to create release (changesets/action) | |
| issues: write # to post issue comments (changesets/action) | |
| pull-requests: write # to create pull request (changesets/action) | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24.16.0 | |
| registry-url: https://registry.npmjs.org | |
| - name: install pnpm | |
| run: npm i pnpm@latest -g | |
| - name: install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: create or update release pull request | |
| id: changesets | |
| uses: changesets/action@v1 | |
| with: | |
| version: pnpm run version | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| publish: | |
| name: Publish | |
| needs: version | |
| if: needs.version.outputs.hasChangesets == 'false' | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| permissions: | |
| contents: write # to create release (changesets/action) | |
| id-token: write # OIDC token for npm trusted publishing | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24.16.0 | |
| registry-url: https://registry.npmjs.org | |
| - name: install pnpm | |
| run: npm i pnpm@latest -g | |
| - name: install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: build | |
| run: pnpm build | |
| - name: publish to npm | |
| uses: changesets/action@v1 | |
| with: | |
| publish: pnpm run release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |