Skip to content

Commit

Permalink
chore(ci): use prebuilt turbo for building js packages
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-olszewski committed Apr 17, 2024
1 parent 7f29b14 commit 3bb6b01
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 19 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/turborepo-release.yml
Expand Up @@ -197,16 +197,14 @@ jobs:
with:
enable-corepack: false

- name: Install Global Turbo
uses: ./.github/actions/install-global-turbo

- name: Configure git
run: |
git config --global user.name 'Turbobot'
git config --global user.email 'turbobot@vercel.com'
- name: Setup turborepo environment
uses: ./.github/actions/setup-turborepo-environment
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

- name: Install GoReleaser
uses: goreleaser/goreleaser-action@v3
with:
Expand Down
17 changes: 4 additions & 13 deletions cli/Makefile
Expand Up @@ -3,13 +3,9 @@ TURBO_TAG = $(shell cat ../version.txt | sed -n '2 p')

CLI_DIR = $(shell pwd)

.PHONY: install
install:
pnpm install

build: install
cd $(CLI_DIR)/../ && pnpm build:turbo
cd $(CLI_DIR)/../ && pnpm turbo-prebuilt build \
# This only builds JS packages
build:
cd $(CLI_DIR)/../ && turbo build \
--filter=create-turbo \
--filter=@turbo/codemod \
--filter=turbo-ignore \
Expand Down Expand Up @@ -48,7 +44,7 @@ stage-release:
git push origin staging-$(TURBO_VERSION) --tags --force

.PHONY: publish-turbo
publish-turbo: clean build
publish-turbo: build
echo "Version: $(TURBO_VERSION)"
echo "Tag: $(TURBO_TAG)"

Expand Down Expand Up @@ -86,11 +82,6 @@ ifneq ($(SKIP_PUBLISH),--skip-publish)
npm publish -ddd --tag $(TURBO_TAG) $(CLI_DIR)/../turbo-types-$(TURBO_VERSION).tgz
endif

clean: clean-rust

clean-rust:
cargo clean

# use target fixture-<some directory under turborepo-tests/integration/fixtures> to set up the testbed directory
.PHONY=fixture-%
fixture-%:
Expand Down
2 changes: 1 addition & 1 deletion cli/package.json
Expand Up @@ -3,7 +3,7 @@
"private": true,
"version": "0.0.0",
"scripts": {
"clean": "make clean",
"clean": "cargo clean -p turbo",
"build": "cargo build -p turbo",
"build:release": "cargo build -p turbo --profile release-turborepo"
}
Expand Down

0 comments on commit 3bb6b01

Please sign in to comment.