Bump undici from 6.27.0 to 6.28.0 in /packages/github-actions #39
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: JS Packages - Create Release | |
| on: | |
| pull_request_review: | |
| types: | |
| - submitted | |
| jobs: | |
| CreateRelease: | |
| name: Create release for JS package | |
| runs-on: ubuntu-latest | |
| if: ${{ (github.event.pull_request.head.ref == 'release/jsdoc' || github.event.pull_request.head.ref == 'release/tracking-jsdoc') && github.event.review.state == 'approved' }} | |
| steps: | |
| - name: Derive package config | |
| id: config | |
| run: | | |
| PACKAGE_NAME="${{ github.event.pull_request.head.ref }}" | |
| PACKAGE_NAME="${PACKAGE_NAME#release/}" | |
| PACKAGE_DIR="packages/js/${PACKAGE_NAME}" | |
| TAG_PREFIX="${PACKAGE_NAME}-v" | |
| echo "package-name=${PACKAGE_NAME}" >> $GITHUB_OUTPUT | |
| echo "package-dir=${PACKAGE_DIR}" >> $GITHUB_OUTPUT | |
| echo "tag-prefix=${TAG_PREFIX}" >> $GITHUB_OUTPUT | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Create release | |
| uses: actions/github-script@v9 | |
| with: | |
| script: | | |
| const workspace = '${{ github.workspace }}'; | |
| const { default: script } = await import( `${ workspace }/.github/scripts/create-release.mjs` ); | |
| await script( { | |
| github, | |
| context, | |
| outputJsonPath: '/tmp/release.json', | |
| packageDir: '${{ steps.config.outputs.package-dir }}', | |
| packageName: '${{ steps.config.outputs.package-name }}', | |
| tagPrefix: '${{ steps.config.outputs.tag-prefix }}', | |
| } ); | |
| - name: Upload release artifact | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: release | |
| path: /tmp/release.json |