Depot CLI 2.101.34 #288
Workflow file for this run
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: | |
| release: | |
| types: | |
| - published | |
| permissions: | |
| contents: write | |
| id-token: write | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest-16-cores | |
| if: startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, 'dev-') | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: "1.21" | |
| check-latest: true | |
| cache: true | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4.0.0 | |
| with: | |
| version: 8.x.x | |
| - name: Install Node 24 | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "24" | |
| registry-url: https://registry.npmjs.org | |
| cache: pnpm | |
| cache-dependency-path: npm/pnpm-lock.yaml | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile --ignore-scripts | |
| working-directory: npm | |
| - uses: aws-actions/configure-aws-credentials@v4 | |
| with: | |
| role-to-assume: arn:aws:iam::375021575472:role/github-actions | |
| aws-region: us-east-1 | |
| - name: Compute tag name | |
| id: tag-name | |
| run: echo "tag-name=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT | |
| - uses: goreleaser/goreleaser-action@v5 | |
| with: | |
| version: 1.19.0 | |
| args: release --clean | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.BOT_PUBLIC_GITHUB_TOKEN }} | |
| GORELEASER_CURRENT_TAG: ${{ steps.tag-name.outputs.tag-name }} | |
| - name: Build pnpm packages | |
| run: make npm | |
| env: | |
| DEPOT_CLI_VERSION: ${{ steps.tag-name.outputs.tag-name }} | |
| - name: Release npm packages | |
| run: pnpm publish -r --access public --no-git-checks | |
| working-directory: npm |