Skip to content

Commit

Permalink
ci: remove extra build step and make SKIP_PREFLIGHT_CHECK on .env
Browse files Browse the repository at this point in the history
  • Loading branch information
armand1m committed Jul 4, 2021
1 parent 6fb9f4e commit a483435
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI
on: [push]
jobs:
build:
name: Lint, test, build and release on Node 16
name: Build, lint, test and release on Node 16
runs-on: ubuntu-latest
steps:
- name: Checkout repo
Expand All @@ -25,9 +25,6 @@ jobs:
- name: Coverage
run: npx codecov -f coverage/*.json

- name: Build
run: yarn build

- name: Pack Inspect
run: yarn pack:inspect

Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ dist

# misc
.DS_Store
.env
./.env
.env.local
.env.development.local
.env.test.local
Expand Down
1 change: 1 addition & 0 deletions example/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SKIP_PREFLIGHT_CHECK=true
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"prepare": "npm run build",
"semantic-release": "semantic-release",
"pack:inspect": "yarn pack && tar -ztvf *.tgz",
"predeploy-example": "SKIP_PREFLIGHT_CHECK=true $(cd example && yarn && yarn build)",
"predeploy-example": "cd example && yarn && yarn build",
"deploy-example": "gh-pages -d example/build"
},
"peerDependencies": {
Expand Down

0 comments on commit a483435

Please sign in to comment.