Skip to content

Commit

Permalink
Vercel trigger script (#340)
Browse files Browse the repository at this point in the history
Any questions should be directed to @vujita

---

Replace any ":question:" below with information about your pull request.

## Pull Request Details

Provide details about your pull request and what it adds, fixes, or
changes.

:question:

## Breaking Changes

Describe what features are broken by this pull request and why, if any.

:question:

## Issues Fixed

Enter the issue numbers resolved by this pull request below, if any.

1. :question:

## Other Relevant Information

Provide any other important details below.

:question:

---------

Signed-off-by: Vu Nguyen <shardphoneix@gmail.com>
vujita authored Sep 15, 2024
1 parent a27ebf8 commit 3032085
Showing 3 changed files with 15 additions and 4 deletions.
14 changes: 14 additions & 0 deletions apps/vubnguyen/bin/ignore-build-step.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

echo "VERCEL_ENV: $VERCEL_ENV"
echo "VERCEL_GIT_COMMIT_REF: $VERCEL_GIT_COMMIT_REF"

if [[ "$VERCEL_GIT_COMMIT_REF" == "gh-pages" ]]; then
# Don't build
echo "🛑 - Build cancelled"
exit 0
else
# Proceed with the build
echo "✅ - Build can proceed"
exit 1
fi
3 changes: 0 additions & 3 deletions packages/vujita-ui/files/vercel.json

This file was deleted.

2 changes: 1 addition & 1 deletion packages/vujita-ui/xclap.ts
Original file line number Diff line number Diff line change
@@ -9,5 +9,5 @@ xrun.load({
"build:clean": xrun.exec("rimraf storybook-static coverage dist"),
"build:lib": xrun.serial(xrun.exec("tsc -p tsconfig.build.json"), xrun.exec("tsc-alias -p tsconfig.build.json"), xrun.exec("tailwind -i src/index.css -o dist/index.css")),
"build:watch": ["build:lib", xrun.concurrent(xrun.exec("tsc -p tsconfig.build.json --watch"), xrun.exec("tsc-alias -p tsconfig.build.json --watch"))],
"storybook:build": xrun.serial("build:lib", xrun.exec("storybook build"), xrun.exec("cp files/vercel.json storybook-static/")),
"storybook:build": xrun.serial("build:lib", xrun.exec("storybook build")),
});

0 comments on commit 3032085

Please sign in to comment.