Skip to content

Commit

Permalink
Detect out-of-sync lock file in the pr builder
Browse files Browse the repository at this point in the history
  • Loading branch information
pavinduLakshan committed Jul 29, 2024
1 parent 9ccbe00 commit 21d9961
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
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
run: |
yarn
git diff --exit-code
if [ $? -ne 0 ]; then
echo "There are modified files after running yarn."
exit 1
fi
- name: Build
run: |
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"homepage": "https://github.com/asgardeo/asgardeo-auth-react-sdk#readme",
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.47.0",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^5.47.0",
"eslint": "^8.30.0",
"eslint-plugin-import": "^2.26.0",
Expand Down

0 comments on commit 21d9961

Please sign in to comment.