Remove package version change requirement for main PRs in code-analysis.yml to streamline workflow. #6

Merged
admin merged 1 commits from dev into main 2026-04-16 13:41:07 +02:00
2 changed files with 20 additions and 4 deletions

View File

@@ -31,10 +31,6 @@ jobs:
node -v node -v
npm -v npm -v
- name: Require package version change for main PRs
if: github.event_name == 'pull_request' && github.base_ref == 'main'
run: scripts/check-package-version-changed.sh origin/main
- name: gitleaks (Secrets Scanning) - name: gitleaks (Secrets Scanning)
run: | run: |
# Try to get the latest release asset URL # Try to get the latest release asset URL

View File

@@ -0,0 +1,20 @@
name: Require Package Version Change
on:
pull_request:
branches: [ main ]
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- name: Check package.json version changed
run: scripts/check-package-version-changed.sh origin/main