Skip to content

Commit d1edee5

Browse files
committed
fixup! chore: update release workflow to use new build scripts
1 parent 59cd2c7 commit d1edee5

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

.github/workflows/release.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ jobs:
112112
js-${{ runner.os }}-
113113
114114
- name: Install make
115-
run: brew install make
115+
run: |
116+
brew install make
117+
echo "$(brew --prefix)/opt/make/libexec/gnubin" >> $GITHUB_PATH
116118
117119
- name: Build Site
118120
run: make site/out/index.html

Makefile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,12 @@ dev:
6565

6666
fmt/prettier:
6767
@echo "--- prettier"
68+
cd site
6869
# Avoid writing files in CI to reduce file write activity
6970
ifdef CI
70-
cd site && yarn run format:check
71+
yarn run format:check
7172
else
72-
cd site && yarn run format:write
73+
yarn run format:write
7374
endif
7475
.PHONY: fmt/prettier
7576

@@ -150,14 +151,16 @@ provisionersdk/proto/provisioner.pb.go: provisionersdk/proto/provisioner.proto
150151

151152
site/out/index.html: $(shell find ./site -not -path './site/node_modules/*' -type f -name '*.tsx') $(shell find ./site -not -path './site/node_modules/*' -type f -name '*.ts') site/package.json
152153
./scripts/yarn_install.sh
153-
cd site && yarn typegen
154-
cd site && yarn build
154+
cd site
155+
yarn typegen
156+
yarn build
155157
# Restores GITKEEP files!
156-
git checkout HEAD site/out
158+
git checkout HEAD out
157159

158160
site/src/api/typesGenerated.ts: scripts/apitypings/main.go $(shell find codersdk -type f -name '*.go')
159161
go run scripts/apitypings/main.go > site/src/api/typesGenerated.ts
160-
cd site && yarn run format:types
162+
cd site
163+
yarn run format:types
161164

162165
test: test-clean
163166
gotestsum -- -v -short ./...

0 commit comments

Comments
 (0)