Skip to content

Commit

Permalink
Surveys peer deps (#92)
Browse files Browse the repository at this point in the history
* Correct release script

* Update pre-commit with lint-staged

* Update pre-commit

* Move data to peer dependency

* package lock file

* Add back in node v18.x

* Add check for clean git tree

* Update build script (again)

* Moved data to peer dep for initjspsych

* Changes with style's css file

* Changeset
  • Loading branch information
okaycj authored Oct 29, 2024
1 parent 6e647a8 commit ec2fdec
Show file tree
Hide file tree
Showing 10 changed files with 802 additions and 43 deletions.
6 changes: 6 additions & 0 deletions .changeset/beige-horses-beam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@lookit/lookit-initjspsych": patch
"@lookit/surveys": patch
---

Moved @lookit/data to peer dependency.
5 changes: 5 additions & 0 deletions .changeset/hip-drinks-pump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@lookit/style": patch
---

Update consent video style
24 changes: 14 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,26 @@ jobs:
run: sudo apt-get update && sudo apt-get install -y libpango1.0-dev

- name: Install NPM dependencies
run: npm ci

- name: Create environment file
run: printenv > .env
env:
DEBUG: "false"
LOCAL_DOWNLOAD: "false"

- name: Build packages
run: npm run build
run: npm install --package-lock

- name: Lint project
run: npm run lint

- name: Format project
run: npm run format

- name: Build packages
run: npm run build

- name: Test project
run: npm test

- name: Check for clean git tree
shell: bash
run: |
if [[ $(git status -s) ]]
then
echo "The following files have changed:"
git status -s
exit 1
fi
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Create environment file
run: printenv > .env
env:
DEBUG: "false"
LOCAL_DOWNLOAD: "false"

- name: Build packages
run: npm run build

Expand Down
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
npm run fix
lint-staged
Loading

0 comments on commit ec2fdec

Please sign in to comment.