Skip to content

Bump js-yaml from 4.3.0 to 4.3.1 #41

Bump js-yaml from 4.3.0 to 4.3.1

Bump js-yaml from 4.3.0 to 4.3.1 #41

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