Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Auto-Increment version on main branch #43

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 24 additions & 3 deletions .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,28 @@ jobs:
else
echo "PRE_RELEASE=false" >> $GITHUB_OUTPUT
fi
update-versions:
needs: [define-variables]
name: Update Manifest Version
runs-on: ubuntu-latest
if: needs.define-variables.outputs.pre_release == 'false'
env:
NPM_PACKAGE_VERSION: ${{ needs.define-variables.outputs.version }}
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
# - uses: actions/setup-node@v4
# with:
# node-version: 18
- run: npm run version
- name: Commit & Push Version Increment
uses: actions-js/push@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
message: "[skip ci] updated mainfest version"
branch: ${{ github.ref_name }}
create-release:
needs: [define-variables]
name: Create Github Release
Expand All @@ -39,11 +61,10 @@ jobs:
env:
NPM_PACKAGE_VERSION: ${{ needs.define-variables.outputs.version }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build Plugin
run: |
npm install
npm run version
npm run build
- uses: "marvinpinto/action-automatic-releases@latest"
name: Publish Release
Expand All @@ -63,7 +84,7 @@ jobs:
env:
NPM_PACKAGE_VERSION: ${{ needs.define-variables.outputs.version }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build Plugin
run: |
npm install
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Next] - 2024-11-21

- [⚙️] ci: Updated build workflow to use update version of `mainfest.json` file

## [1.3.0] - 2024-08-06

### Added
Expand Down
Loading