Skip to content

Commit

Permalink
ci: run build on every commit
Browse files Browse the repository at this point in the history
  • Loading branch information
thdxr committed Sep 2, 2024
1 parent df0706a commit 34ef824
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 34ef824

Please sign in to comment.