Skip to content

Commit

Permalink
build: migrate to npm (#703)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwalley authored Dec 27, 2023
1 parent 711e783 commit a3d4bb5
Show file tree
Hide file tree
Showing 13 changed files with 60,392 additions and 20,629 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ jobs:

strategy:
matrix:
node-version: [16.x, 18.x]
node-version: [18.x, 20.x]

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "yarn"
- run: yarn install --frozen-lockfile
- run: yarn build
- run: yarn test
cache: "npm"
- run: npm install --frozen-lockfile
- run: npm run build
- run: npm run test
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged
npx lint-staged
1 change: 1 addition & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ Allotment is available from npm.
Allotment has `react` and `react-dom` as peer dependencies.

```sh
yarn add react react-dom
npm install react react-dom
```

### Installation

```sh
yarn add allotment
npm install allotment
```

## Usage
Expand Down
Loading

0 comments on commit a3d4bb5

Please sign in to comment.