Release PR #2
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
# This workflow is to create a release PR for a specified version. | |
# It can be trigger manually with the version as an input. | |
# Once the PR is merged into main branch the release.yml workflow | |
# will start the release process. | |
name: 'Release PR' | |
on: | |
workflow_dispatch: | |
permissions: {} | |
jobs: | |
release-please: | |
permissions: | |
contents: write # to create release commit (google-github-actions/release-please-action) | |
pull-requests: write # to create release PR (google-github-actions/release-please-action) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Display Release version | |
run: echo "Creating release PR" | |
- name: Create Release PR | |
uses: google-github-actions/release-please-action@v3 | |
id: release | |
with: | |
token: ${{ secrets.REPO_SCOPED_TOKEN }} | |
release-type: node | |
package-name: nepali-datetime | |
pull-request-title-pattern: 'chore: release v${version}' | |
pull-request-header: 'Release PR' | |
changelog-types: > | |
[ | |
{"type":"fix","section":"Bug Fixes"}, | |
{"type":"feat","section":"Features"} | |
] |