chore(deps): update TypeScript SDK dependencies #106
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: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| permissions: {} | |
| jobs: | |
| verify: | |
| if: github.event_name != 'push' || !contains(github.event.head_commit.message, '[skip ci]') | |
| name: Verify SDK | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| concurrency: | |
| group: verify-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Set up Vite+ | |
| uses: ./.github/actions/setup-vp | |
| with: | |
| node-version-file: ".node-version" | |
| cache: true | |
| - name: Install dependencies | |
| run: vp install | |
| - name: Verify repository | |
| run: vp run verify | |
| - name: Verify package metadata | |
| run: vp run lint:package | |
| compatibility: | |
| if: github.event_name != 'push' || !contains(github.event.head_commit.message, '[skip ci]') | |
| name: Compatibility / ${{ matrix.target }} | |
| needs: | |
| - verify | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| concurrency: | |
| group: compatibility-${{ matrix.target }}-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - target: node | |
| command: node ./scripts/test-compat-node.mts | |
| - target: browser-chromium | |
| browser: chromium | |
| command: node ./scripts/test-compat-browser.mts | |
| - target: browser-firefox | |
| browser: firefox | |
| command: node ./scripts/test-compat-browser.mts | |
| - target: browser-webkit | |
| browser: webkit | |
| command: node ./scripts/test-compat-browser.mts | |
| - target: bun | |
| command: node ./scripts/test-compat-bun.mts | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Set up Vite+ | |
| uses: ./.github/actions/setup-vp | |
| with: | |
| node-version-file: ".node-version" | |
| cache: true | |
| - name: Set up Bun | |
| if: matrix.target == 'bun' | |
| uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2 | |
| with: | |
| bun-version: "1.3.10" | |
| - name: Install dependencies | |
| run: vp install | |
| - name: Install browser runtime | |
| if: startsWith(matrix.target, 'browser-') | |
| run: vp exec playwright install --with-deps ${{ matrix.browser }} | |
| - name: Verify compatibility | |
| run: ${{ matrix.command }} | |
| env: | |
| PUTIO_COMPAT_BROWSERS: ${{ matrix.browser }} | |
| release: | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' && !contains(github.event.head_commit.message, '[skip ci]') | |
| name: Release SDK | |
| needs: | |
| - verify | |
| - compatibility | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| concurrency: | |
| group: release-${{ github.repository }}-main | |
| cancel-in-progress: false | |
| environment: | |
| name: release | |
| deployment: false | |
| permissions: | |
| contents: read | |
| id-token: write | |
| steps: | |
| - name: Create release bot token | |
| id: release-bot | |
| uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0 | |
| with: | |
| client-id: ${{ vars.PUTIO_RELEASE_BOT_CLIENT_ID }} | |
| private-key: ${{ secrets.PUTIO_RELEASE_BOT_PRIVATE_KEY }} | |
| permission-contents: write | |
| permission-issues: write | |
| permission-pull-requests: write | |
| - name: Check out repository | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - name: Set up Vite+ | |
| uses: ./.github/actions/setup-vp | |
| with: | |
| node-version-file: ".node-version" | |
| cache: false | |
| - name: Install dependencies | |
| run: vp install | |
| - name: Configure release bot remote | |
| run: git remote set-url origin "https://x-access-token:${RELEASE_BOT_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" | |
| env: | |
| RELEASE_BOT_TOKEN: ${{ steps.release-bot.outputs.token }} | |
| - name: Release package | |
| uses: cycjimmy/semantic-release-action@b12c8f6015dc215fe37bc154d4ad456dd3833c90 # v6.0.0 | |
| with: | |
| extra_plugins: | | |
| @semantic-release/commit-analyzer@13.0.1 | |
| @semantic-release/release-notes-generator@14.1.1 | |
| @semantic-release/npm@13.1.5 | |
| @semantic-release/github@12.0.8 | |
| @semantic-release/git@10.0.1 | |
| conventional-changelog-conventionalcommits@9.3.1 | |
| env: | |
| GITHUB_TOKEN: ${{ steps.release-bot.outputs.token }} | |
| GIT_AUTHOR_NAME: ${{ steps.release-bot.outputs.app-slug }}[bot] | |
| GIT_AUTHOR_EMAIL: ${{ steps.release-bot.outputs.app-slug }}[bot]@users.noreply.github.com | |
| GIT_COMMITTER_NAME: ${{ steps.release-bot.outputs.app-slug }}[bot] | |
| GIT_COMMITTER_EMAIL: ${{ steps.release-bot.outputs.app-slug }}[bot]@users.noreply.github.com |