mirror of
https://github.com/tenrok/axios.git
synced 2026-05-27 14:47:43 +03:00
6a63614cc1
Bumps the github-actions group with 8 updates: | Package | From | To | | --- | --- | --- | | [actions/checkout](https://github.com/actions/checkout) | `3` | `4` | | [tj-actions/changed-files](https://github.com/tj-actions/changed-files) | `40` | `45` | | [actions/setup-node](https://github.com/actions/setup-node) | `3` | `4` | | [github/codeql-action](https://github.com/github/codeql-action) | `2` | `3` | | [actions/dependency-review-action](https://github.com/actions/dependency-review-action) | `3` | `4` | | [ffurrer2/extract-release-notes](https://github.com/ffurrer2/extract-release-notes) | `1` | `2` | | [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) | `6` | `7` | | [actions/stale](https://github.com/actions/stale) | `7` | `9` | Updates `actions/checkout` from 3 to 4 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) Updates `tj-actions/changed-files` from 40 to 45 - [Release notes](https://github.com/tj-actions/changed-files/releases) - [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md) - [Commits](https://github.com/tj-actions/changed-files/compare/v40...v45) Updates `actions/setup-node` from 3 to 4 - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v3...v4) Updates `github/codeql-action` from 2 to 3 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/v2...v3) Updates `actions/dependency-review-action` from 3 to 4 - [Release notes](https://github.com/actions/dependency-review-action/releases) - [Commits](https://github.com/actions/dependency-review-action/compare/v3...v4) Updates `ffurrer2/extract-release-notes` from 1 to 2 - [Release notes](https://github.com/ffurrer2/extract-release-notes/releases) - [Changelog](https://github.com/ffurrer2/extract-release-notes/blob/main/CHANGELOG.md) - [Commits](https://github.com/ffurrer2/extract-release-notes/compare/v1...v2) Updates `peter-evans/create-pull-request` from 6 to 7 - [Release notes](https://github.com/peter-evans/create-pull-request/releases) - [Commits](https://github.com/peter-evans/create-pull-request/compare/v6...v7) Updates `actions/stale` from 7 to 9 - [Release notes](https://github.com/actions/stale/releases) - [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/stale/compare/v7...v9) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: tj-actions/changed-files dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: github/codeql-action dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/dependency-review-action dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: ffurrer2/extract-release-notes dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: peter-evans/create-pull-request dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/stale dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
85 lines
2.8 KiB
YAML
85 lines
2.8 KiB
YAML
name: Release PR
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
type:
|
|
type: choice
|
|
description: Choose release type
|
|
options:
|
|
- auto
|
|
- patch
|
|
- minor
|
|
- major
|
|
default: auto
|
|
beta:
|
|
type: boolean
|
|
description: Prerelease
|
|
default: false
|
|
jobs:
|
|
releaseIt:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
- name: git config
|
|
run: |
|
|
git config user.name "${GITHUB_ACTOR}"
|
|
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
|
|
- name: Setup node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 16
|
|
cache: npm
|
|
- run: npm ci
|
|
- name: Prepare release
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
TYPE_ARG: ${{ fromJSON('{"auto":"", "patch":"patch", "minor":"minor", "major":"major"}')[github.event.inputs.type] }}
|
|
BETA_ARG: ${{ github.event.inputs.beta == 'true' && '--preRelease=beta' || '' }}
|
|
run: npm run release -- $TYPE_ARG --ci --verbose --no-git.push --no-git.commit --no-git.tag --no-github $BETA_ARG $DRY_ARG
|
|
- name: Show git status
|
|
if: failure()
|
|
run: git status && git diff
|
|
- name: Add contributors list to CHANGELOG.md
|
|
run: npm run release:changelog:fix
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
- name: get-npm-version
|
|
id: package-version
|
|
uses: martinbeentjes/npm-get-version-action@main
|
|
- name: Extract release notes
|
|
id: extract-release-notes
|
|
uses: ffurrer2/extract-release-notes@v2
|
|
- name: Generate PR body
|
|
id: body
|
|
uses: mathiasvr/command-output@v1
|
|
with:
|
|
run: node ./bin/pr.js
|
|
- name: Create pull request
|
|
uses: peter-evans/create-pull-request@v7
|
|
id: cpr
|
|
with:
|
|
branch: release
|
|
delete-branch: true
|
|
commit-message: 'chore(release): v${{ steps.package-version.outputs.current-version}}'
|
|
title: '[Release] v${{ steps.package-version.outputs.current-version}}'
|
|
body: |
|
|
${{ steps.body.outputs.stdout }}
|
|
## Release notes:
|
|
${{ steps.extract-release-notes.outputs.release_notes }}
|
|
labels: |
|
|
release
|
|
automated pr
|
|
signoff: false
|
|
#team-reviewers: |
|
|
# owners
|
|
# maintainers
|
|
#assignees: jasonsaayman
|
|
#reviewers: jasonsaayman
|
|
draft: false
|
|
- name: Show PR link
|
|
if: ${{ steps.cpr.outputs.pull-request-url }}
|
|
run: |
|
|
echo "Axios Release v${{ steps.package-version.outputs.current-version}}' pull request - ${{ steps.cpr.outputs.pull-request-url }}"
|