From 34ef824de47a931faf4d21885c5425b65160c091 Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Sun, 1 Sep 2024 23:17:14 -0400 Subject: [PATCH] ci: run build on every commit --- .github/workflows/build.yml | 46 +++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 000000000..7bd0b39e9 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,46 @@ +name: build + +on: + push: + workflow_dispatch: + branches: + - dev + +concurrency: ${{ github.workflow }}-${{ github.ref }} + +permissions: + contents: write + packages: write + +jobs: + goreleaser: + 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 + + - run: go build ./cmd/sst