Skip to content

ci: update Node.js and publish actions and workflows #1755

ci: update Node.js and publish actions and workflows

ci: update Node.js and publish actions and workflows #1755

# Validate pull request titles with the same commitlint policy as the shared linter.
#
# The lint-pull-request-title action runs on Node.js and reads the repository's root commitlint config.
# It falls back to `@commitlint/config-conventional` when no rules are configured.
# Contributor and bot titles use the same repository rules; warnings produce annotations.
# The action owns its dependencies and installs them from its lockfile with lifecycle scripts disabled.
# Git-generated messages are not exempt by default; repository ignore settings take precedence.
# This workflow requires contents: read and checks out the event's revision without persisted credentials.
# For pull_request_target callers, checkout uses the trusted base revision, never the PR head.
# See [the common commit process](../../docs/usage/commits.md) for local validation and bot configuration.
name: "Semantic Pull Request"
on:
pull_request:
types:
- opened
- edited
- synchronize
workflow_call:
inputs:
runs-on:
description: |
JSON array of runner(s) to use.
See https://docs.github.com/en/actions/using-jobs/choosing-the-runner-for-a-job.
required: false
type: string
default: '["ubuntu-latest"]'
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true
permissions: {}
jobs:
lint:
name: "☑️ Validate PR title"
if: ${{ github.event.pull_request }}
runs-on: ${{ inputs.runs-on && fromJson(inputs.runs-on) || 'ubuntu-latest' }}
permissions:
contents: read
steps:
- name: Checkout repository configuration
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Validate title
uses: $/actions/quality/lint-pull-request-title