|
44 | 44 | next-version: ${{ steps.check.outputs.next-version }} |
45 | 45 | current-version: ${{ steps.check.outputs.current-version }} |
46 | 46 | steps: |
47 | | - - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 |
| 47 | + - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5 |
48 | 48 | with: |
49 | 49 | fetch-depth: 0 |
50 | 50 | token: ${{ secrets.GITHUB_TOKEN }} |
@@ -222,7 +222,7 @@ jobs: |
222 | 222 | runs-on: ubuntu-latest |
223 | 223 | if: needs.analyze.outputs.should-release == 'true' && needs.analyze.outputs.release-type != 'major' |
224 | 224 | steps: |
225 | | - - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 |
| 225 | + - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5 |
226 | 226 | with: |
227 | 227 | fetch-depth: 0 |
228 | 228 | token: ${{ secrets.SRB_TOKEN }} |
@@ -283,7 +283,7 @@ jobs: |
283 | 283 | npm version "$NEXT_VERSION" --no-git-tag-version |
284 | 284 | |
285 | 285 | # Generate release notes via semantic-release dry run (no tags) |
286 | | - node -e "const fs=require('fs');const semanticRelease=require('semantic-release');(async()=>{try{const result=await semanticRelease({ci:false,dryRun:true});const notes=result&&result.nextRelease&&result.nextRelease.notes?result.nextRelease.notes.trim():'';fs.writeFileSync('release-notes.md',notes?notes+'\\n':'');}catch(error){console.error('Failed to generate release notes via semantic-release dry run');console.error(error);fs.writeFileSync('release-notes.md','');}})();" |
| 286 | + node -e "const fs=require('fs');const {default: semanticRelease}=await import('semantic-release');(async()=>{try{const result=await semanticRelease({ci:false,dryRun:true});const notes=result&&result.nextRelease&&result.nextRelease.notes?result.nextRelease.notes.trim():'';fs.writeFileSync('release-notes.md',notes?notes+'\\n':'');}catch(error){console.error('Failed to generate release notes via semantic-release dry run');console.error(error);fs.writeFileSync('release-notes.md','');}})();" |
287 | 287 | |
288 | 288 | # Build changelog entry with generated notes (fallback to simple entry) |
289 | 289 | cat > temp_changelog.md << EOF |
@@ -366,7 +366,7 @@ jobs: |
366 | 366 | runs-on: ubuntu-latest |
367 | 367 | if: needs.analyze.outputs.should-release == 'true' && needs.analyze.outputs.release-type == 'major' |
368 | 368 | steps: |
369 | | - - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 |
| 369 | + - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5 |
370 | 370 | with: |
371 | 371 | fetch-depth: 0 |
372 | 372 | token: ${{ secrets.GITHUB_TOKEN }} |
@@ -429,7 +429,7 @@ jobs: |
429 | 429 | egress-policy: audit |
430 | 430 |
|
431 | 431 | - name: Checkout |
432 | | - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 |
| 432 | + uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5 |
433 | 433 | with: |
434 | 434 | fetch-depth: 0 |
435 | 435 | token: ${{ secrets.GITHUB_TOKEN }} |
|
0 commit comments