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

chore(terra-draw): add a step to update package-lock.json for Leaflet #414

Merged
merged 1 commit into from
Jan 12, 2025
Merged
Show file tree
Hide file tree
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
15 changes: 13 additions & 2 deletions .github/workflows/terra-draw-leaflet-adapter-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ jobs:
working-directory: ./packages/terra-draw-leaflet-adapter
run: npm run build



- name: Set git credentials
run: |
git config --global user.email "[email protected]"
Expand All @@ -45,6 +43,19 @@ jobs:
working-directory: ./packages/terra-draw-leaflet-adapter
run: npm run release

- name: Check if package-lock.json changed
run: |
npm install

# Check if package-lock.json changed
if ! git diff --exit-code --quiet package-lock.json; then
echo "package-lock.json has changed"
git add package-lock.json
git commit -m "chore(terra-draw): update package-lock.json during CI release"
else
echo "No changes to package-lock.json"
fi

- name: Push upstream
run: git push origin main

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading