https://github.com/sliker/update-package-version-from-release-branch
Automatically update the package version based on the branch name when there is a push to a release branch. This action extracts the version from the branch name and updates the package version accordingly. It enables automated versioning for your project's release branches, eliminating the need for manual version management.
https://github.com/sliker/update-package-version-from-release-branch
Last synced: about 2 months ago
JSON representation
Automatically update the package version based on the branch name when there is a push to a release branch. This action extracts the version from the branch name and updates the package version accordingly. It enables automated versioning for your project's release branches, eliminating the need for manual version management.
- Host: GitHub
- URL: https://github.com/sliker/update-package-version-from-release-branch
- Owner: sliker
- License: mit
- Created: 2024-02-27T22:21:56.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-17T06:29:42.000Z (11 months ago)
- Last Synced: 2025-01-21T17:50:56.234Z (3 months ago)
- Language: JavaScript
- Size: 454 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# update-package-version-from-release-branch
[](https://github.com/super-linter/super-linter)
## Usage
**Non-protected branch**:
```yaml
name: Bump package version
on:
push:
branches:
- 'release/**'permissions:
contents: writejobs:
bump:
name: Bump package version
runs-on: ubuntu-lateststeps:
- name: Checkout source code
id: checkout
uses: actions/checkout@v4
- name: Update Package Version
uses: sliker/[email protected]
```**Protected branch**:
```yaml
name: Bump package version
on:
push:
branches:
- 'release/**'permissions:
contents: writejobs:
bump:
name: Bump package version
runs-on: ubuntu-lateststeps:
- name: Checkout source code
id: checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GB_TOKEN }}
- name: Update Package Version
uses: sliker/[email protected]
```