This repository has been archived by the owner on Oct 21, 2024. It is now read-only.
cluster: fix dockerfile not found #81
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: build | |
on: | |
push: | |
workflow_dispatch: | |
branches: | |
- dev | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
permissions: | |
contents: write | |
packages: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: oven-sh/setup-bun@v1 | |
with: | |
bun-version: latest | |
- run: | | |
npm config set //registry.npmjs.org/:_authToken $NODE_AUTH_TOKEN | |
npm whoami | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- run: git fetch --force --tags | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: ">=1.21.0" | |
- name: Go Mod | |
run: go mod download | |
# TODO remove temporary workaround | |
- run: bun i --frozen-lockfile | |
- run: git reset --hard | |
- run: cd platform && bun tsc --noEmit | |
- uses: goreleaser/goreleaser-action@v6 | |
with: | |
distribution: goreleaser | |
version: latest | |
args: build --snapshot --clean |