Skip to content

Commit

Permalink
Switch from yarn to npm (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
wch authored Jun 9, 2023
1 parent 7c38d93 commit b40704d
Show file tree
Hide file tree
Showing 6 changed files with 4,128 additions and 2,566 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Build packages on build branch
on:
push:
branches: [main]
# pull_request:
# branches: [main]
pull_request:
branches: [main]


jobs:
Expand Down Expand Up @@ -32,8 +32,8 @@ jobs:
- name: Build JS and CSS resources
run: |
cd js
yarn
yarn build
npm install
npm run build
- name: Build Python package
run: |
Expand Down Expand Up @@ -74,6 +74,7 @@ jobs:
# Build and deploy site
# =====================================================
deploy-site:
if: github.ref == 'refs/heads/main'
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
Expand Down
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,17 @@ Then, install the dependencies:

```bash
cd js
yarn
npm i
```

To build the component:

```bash
yarn build
npm run build
```

To watch for changes and rebuild automatically:

```bash
npm run build -- --watch
```
Loading

0 comments on commit b40704d

Please sign in to comment.