Skip to content

Commit a483435

Browse files
committed
ci: remove extra build step and make SKIP_PREFLIGHT_CHECK on .env
1 parent 6fb9f4e commit a483435

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: CI
22
on: [push]
33
jobs:
44
build:
5-
name: Lint, test, build and release on Node 16
5+
name: Build, lint, test and release on Node 16
66
runs-on: ubuntu-latest
77
steps:
88
- name: Checkout repo
@@ -25,9 +25,6 @@ jobs:
2525
- name: Coverage
2626
run: npx codecov -f coverage/*.json
2727

28-
- name: Build
29-
run: yarn build
30-
3128
- name: Pack Inspect
3229
run: yarn pack:inspect
3330

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ dist
1010

1111
# misc
1212
.DS_Store
13-
.env
13+
./.env
1414
.env.local
1515
.env.development.local
1616
.env.test.local

example/.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SKIP_PREFLIGHT_CHECK=true

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"prepare": "npm run build",
5555
"semantic-release": "semantic-release",
5656
"pack:inspect": "yarn pack && tar -ztvf *.tgz",
57-
"predeploy-example": "SKIP_PREFLIGHT_CHECK=true $(cd example && yarn && yarn build)",
57+
"predeploy-example": "cd example && yarn && yarn build",
5858
"deploy-example": "gh-pages -d example/build"
5959
},
6060
"peerDependencies": {

0 commit comments

Comments
 (0)