Skip to content

Commit 0de860a

Browse files
committed
chore: adding release-please
1 parent 9c80457 commit 0de860a

File tree

7 files changed

+681
-1
lines changed

7 files changed

+681
-1
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Release Please
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
jobs:
13+
release-please:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: googleapis/release-please-action@v4
17+
with:
18+
release-type: node

.husky/commit-msg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm exec commitlint --edit $1

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm test

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [2.0.0] - Previous Release
9+
10+
This changelog was initialized when setting up automated releases with Release Please.
11+
See [GitHub releases](https://github.com/andrewshell/cacheism/releases) for historical changes.

commitlint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = { extends: ['@commitlint/config-conventional'] };

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"node": ">=20.0.0"
99
},
1010
"scripts": {
11-
"test": "mocha"
11+
"test": "mocha",
12+
"prepare": "husky"
1213
},
1314
"repository": {
1415
"type": "git",
@@ -25,7 +26,10 @@
2526
},
2627
"homepage": "https://github.com/andrewshell/cacheism#readme",
2728
"devDependencies": {
29+
"@commitlint/cli": "^20.2.0",
30+
"@commitlint/config-conventional": "^20.2.0",
2831
"expect.js": "^0.3.1",
32+
"husky": "^9.1.7",
2933
"mocha": "^11.7.5",
3034
"mockdate": "^3.0.5"
3135
},

0 commit comments

Comments
 (0)