mirror of
https://github.com/chancehudson/uikit.git
synced 2026-01-09 22:18:02 -05:00
37 lines
923 B
YAML
37 lines
923 B
YAML
version: 2.1
|
|
workflows:
|
|
test_app:
|
|
jobs:
|
|
# - lint
|
|
- deploy
|
|
|
|
jobs:
|
|
# lint:
|
|
# machine:
|
|
# image: ubuntu-2004:202010-01
|
|
# steps:
|
|
# - checkout
|
|
# - run:
|
|
# name: Install
|
|
# command: npm ci
|
|
# - run:
|
|
# name: Lint
|
|
# command: npm run lint:check
|
|
deploy:
|
|
machine:
|
|
image: ubuntu-2004:202010-01
|
|
steps:
|
|
- checkout
|
|
- run:
|
|
name: Install
|
|
command: npm i -g npm && npm config set strict-ssl false && npx lerna bootstrap --force-local
|
|
- run:
|
|
name: Build
|
|
command: cd packages/demosite && npm run build -- --mode=production && npm run html
|
|
- run:
|
|
name: Deploy
|
|
command: |
|
|
if [ "$CIRCLE_BRANCH" = "main" ]; then
|
|
cd packages/demosite && cp wrangler.example.toml wrangler.toml && npx @cloudflare/wrangler@1.19.8 publish
|
|
fi
|