Skip to content

Commit

Permalink
Merge pull request #11 from edwinhern/ci-update-release-msg
Browse files Browse the repository at this point in the history
ci: 🔧 Add .versionrc.js file for versioning configuration
  • Loading branch information
edwinhern committed Apr 9, 2024
2 parents eaa8279 + 7f82fc6 commit c773303
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 3 deletions.
18 changes: 18 additions & 0 deletions .versionrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
const { execSync } = require('child_process');

// Function to get the previous tag
function getPreviousTag() {
try {
return execSync('git describe --abbrev=0 --tags $(git rev-list --tags --skip=1 --max-count=1)', {
encoding: 'utf-8',
}).trim();
} catch (error) {
console.error('Error getting previous tag:', error);
return 'unknown';
}
}

// Dynamically set the release commit message format
module.exports = {
releaseCommitMessageFormat: `chore(release): :bookmark: bump version ${getPreviousTag()} → {{currentTag}}`,
};
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [0.1.3](https://github.com/edwinhern/portfolio-v2/compare/v0.1.2...v0.1.3) (2024-04-09)

### Features

- :sparkles: Mobile Navbar and env. config ([a3f81e4](https://github.com/edwinhern/portfolio-v2/commit/a3f81e43184f1435409cbbf38d87d6869765156b))

### Bug Fixes

- :arrow_up: Add .npmrc file with legacy-peer-deps setting ([f8d8ec9](https://github.com/edwinhern/portfolio-v2/commit/f8d8ec9451cfb5a285212d3d0ac89a83853291ac))
- :green_heart: Fix pull_request trigger in Docker Image CI workflow ([2e3fac8](https://github.com/edwinhern/portfolio-v2/commit/2e3fac880942a5c5d0fc2e51a10ac63fdec2543e))
- :green_heart: Update build workflow to set up .env for tests ([d880ad7](https://github.com/edwinhern/portfolio-v2/commit/d880ad7151292eca242e2ea87320669602e9d027))
- :white_check_mark: Add environment variable loading to vitest.config.mts ([be825f2](https://github.com/edwinhern/portfolio-v2/commit/be825f2fc58c1819f13016f984a434699502023d))

### [0.1.2](https://github.com/edwinhern/portfolio-v2/compare/v0.1.1...v0.1.2) (2024-04-06)

### Features
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "edwin-portfolio",
"version": "0.1.2",
"version": "0.1.3",
"description": "My personal portfolio website",
"private": true,
"scripts": {
Expand Down

0 comments on commit c773303

Please sign in to comment.