Skip to content

Depot CLI 2.77.0

Depot CLI 2.77.0 #190

Workflow file for this run

name: release
on:
release:
types:
- published
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/[email protected]
with:
version: 8.x.x
- name: Install Node 18
uses: actions/setup-node@v4
with:
node-version: "18"
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
- name: Compute tag name
id: tag-name
run: echo "::set-output name=tag-name::${GITHUB_REF#refs/tags/}"
- uses: goreleaser/goreleaser-action@v5
with:
version: 1.19.0
args: release
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
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}