Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect out-of-sync lock file in the pr builder #238

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/pr-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
Copy link
Member

@brionmario brionmario Jul 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO, the proper fix here would be to remove the prebuild script that installs packages and do the install explicitly.

As a temp workaround, we can do a yarn install --frozen-lockfile before the yarn build

    - name: Build
      run: |
+       yarn install --frozen-lockfile
        yarn build

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO, the proper fix here would be to remove the prebuild script that installs packages and do the install explicitly.

Removing the prebuild script would cause inconsistent lock files being used to package the release artifact, wouldn't it?

run: |
yarn
if ! git diff --exit-code > /dev/null 2>&1; then
echo "ERR! There are modified files after running yarn."
git status -s
exit 1
fi

- name: Build
run: |
Expand Down
Loading