Bump pypa/gh-action-pypi-publish from 1.12.3 to 1.12.4 in the actions group #254
This file contains 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: Bump-n-Release | |
# NOTE: The change log is only updated in the remote upon release (in `bump-release` job) | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
branches: | |
- "main" | |
workflow_dispatch: | |
inputs: | |
component: | |
type: choice | |
required: true | |
default: patch | |
options: | |
- major | |
- minor | |
- patch | |
- rc | |
jobs: | |
bump-release: | |
if: github.event_name == 'workflow_dispatch' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.BUMP_N_RELEASE }} | |
fetch-depth: 0 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.x | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- run: yarn install | |
- run: yarn global add @napi-rs/cli | |
- uses: cargo-bins/cargo-binstall@main | |
- run: cargo binstall -y git-cliff | |
- name: Bump ${{ inputs.component }} version | |
env: | |
GITHUB_TOKEN: ${{ secrets.BUMP_N_RELEASE }} | |
GH_TOKEN: ${{ secrets.BUMP_N_RELEASE }} | |
run: python .github/workflows/bump_version.py ${{ inputs.component }} | |
id: tagged | |
update-changelog: | |
if: github.event_name != 'workflow_dispatch' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Generate a changelog | |
uses: orhun/git-cliff-action@v4 | |
id: git-cliff | |
with: | |
config: .config/cliff.toml | |
args: --unreleased | |
env: | |
OUTPUT: ${{ runner.temp }}/changes.md | |
GITHUB_REPO: ${{ github.repository }} | |
- run: cat "${{ runner.temp }}/changes.md" >> "$GITHUB_STEP_SUMMARY" |