Skip to content

Commit

Permalink
update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Brianzchen committed Mar 18, 2024
1 parent cda4007 commit 0c5be0d
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 21 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

strategy:
matrix:
node-version: [14.x]
node-version: [20.x]

steps:
- name: Checkout repository
Expand All @@ -24,15 +24,17 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- uses: CultureHQ/[email protected]
- uses: pnpm/action-setup@v3
with:
version: 8

- run: yarn
- run: pnpm
- run: node ./scripts/getStoriesList.js
- run: yarn eslint .
- run: yarn flow
- run: yarn jest
- run: yarn build
- run: yarn website:build
- run: pnpm eslint .
- run: pnpm flow
- run: pnpm jest
- run: pnpm build
- run: pnpm website:build

- name: Install Surge
run: npm install -g surge
Expand Down
18 changes: 10 additions & 8 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

strategy:
matrix:
node-version: [14.x]
node-version: [20.x]

steps:
- name: Checkout repository
Expand All @@ -24,12 +24,14 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- uses: CultureHQ/[email protected]
- uses: pnpm/action-setup@v3
with:
version: 8

- run: yarn
- run: pnpm
- run: node ./scripts/getStoriesList.js
- run: yarn eslint .
- run: yarn flow
- run: yarn jest
- run: yarn build
- run: yarn website:build
- run: pnpm eslint .
- run: pnpm flow
- run: pnpm jest
- run: pnpm build
- run: pnpm website:build
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ dangerfile.js
Dockerfile*
GOVERNANCE.md
jest.config.js
pnpm-lock.yaml
yarn.lock
yarn-error.log
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
"scripts": {
"clean": "rm -rf lib",
"build:flow": "flow-copy-source --ignore '*/**/*.{stories,spec}.*' src lib",
"build": "NODE_ENV=production babel src --out-dir lib && yarn build:flow && cp src/types.js types.js",
"prepublishOnly": "yarn clean && yarn jest && yarn flow && yarn build",
"build": "NODE_ENV=production babel src --out-dir lib && pnpm build:flow && cp src/types.js types.js",
"prepublishOnly": "pnpm clean && pnpm jest && pnpm flow && pnpm build",
"docgen": "react-docgen src --out=website/components.json --pretty --exclude='/.*[^(index\\.js$)]/' && node ./scripts/post-docgen.js",
"website:prep": "rm -rf website/dist && yarn docgen && node ./scripts/getStoriesList.js",
"website:build": "yarn website:prep && MODE=website NODE_ENV=production yarn webpack --config website/webpack.config.js",
"website:start": "yarn website:prep && yarn webpack serve --config website/webpack.config.js"
"website:prep": "rm -rf website/dist && pnpm docgen && node ./scripts/getStoriesList.js",
"website:build": "pnpm website:prep && MODE=website NODE_ENV=production pnpm webpack --config website/webpack.config.js",
"website:start": "pnpm website:prep && pnpm webpack serve --config website/webpack.config.js"
},
"dependencies": {
"aphrodite": "^2.4.0",
Expand Down
3 changes: 3 additions & 0 deletions website/pages/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,7 @@ npm i bzc-ui
// with yarn
yarn add bzc-ui
// with pnpm
pnpm add bzc-ui
```

0 comments on commit 0c5be0d

Please sign in to comment.