Skip to content

Commit 930c672

Browse files
Feature/pr status checks (#1199)
* Adds status checks to PR * build then check + change script name * Add nohoist
1 parent 5b59d10 commit 930c672

File tree

2 files changed

+37
-4
lines changed

2 files changed

+37
-4
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: PR Status Checks
2+
3+
on:
4+
# Allows it to be manually triggered, used primarily for debugging
5+
workflow_dispatch:
6+
pull_request:
7+
branches:
8+
- v2-web3-onboard-develop
9+
10+
jobs:
11+
checks:
12+
name: "Checks"
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v2
18+
19+
- name: Setup Nodejs and yarn
20+
uses: actions/setup-node@v2
21+
with:
22+
node-version: "16"
23+
cache: yarn
24+
25+
- name: Install dependencies
26+
run: yarn
27+
28+
- name: Check that it builds
29+
run: yarn build
30+
31+
- name: Check formatting and types
32+
run: yarn check

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
"name": "web3-onboard-monorepo",
33
"version": "2.9.0",
44
"private": true,
5-
"workspaces": [
6-
"./packages/*"
7-
],
5+
"workspaces": {
6+
"packages": ["./packages/*"],
7+
"nohoist": ["**/react", "**/react-dom", "**/csstype"]
8+
},
89
"description": "Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.",
910
"keywords": [
1011
"Ethereum",
@@ -51,7 +52,7 @@
5152
"format": "prettier --write 'packages/**/*.ts'",
5253
"dev": "yarn wsrun dev",
5354
"build": "yarn wsrun --serial build",
54-
"type-check": "yarn wsrun type-check"
55+
"check": "yarn wsrun type-check"
5556
},
5657
"devDependencies": {
5758
"prettier": "^2.4.1",

0 commit comments

Comments
 (0)