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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

pavinduLakshan
Copy link
Contributor

@pavinduLakshan pavinduLakshan commented Jul 29, 2024

Purpose

$subject

Screenshot 2024-07-30 at 00 31 03

Related issues

@@ -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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Detect the missing lock file changes in PR builder
2 participants