Merge branch 'semantic-release'

This commit is contained in:
Yanick Champoux 2024-02-27 12:09:11 -05:00
commit a9ee54cb06
7 changed files with 35 additions and 51 deletions

View File

@ -0,0 +1,5 @@
---
"@yanick/updeep-remeda": patch
---
maint: use changesets for change management

11
.changeset/config.json Normal file
View File

@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json",
"changelog": "@changesets/changelog-git",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}

View File

@ -2,3 +2,5 @@ package.json
node_modules node_modules
dist dist
coverage coverage
contrib/add_change
.prettierignore

View File

@ -1,49 +0,0 @@
---
project:
name: updeep-remeda
homepage: https://github.com/yanick/updeep-remeda
commit_regex: '^(?<type>[^: ]+):(?<desc>.*?)(\[(?<ticket>[^\]]+)\])?$'
ticket_url: ~
with_stats: true
releases:
- version: v2.1.2
date: 2023-03-10
changes:
- desc: check for array deep equality
- desc: 'code churn: 6 files changed, 50 insertions(+), 11 deletions(-)'
type: stats
- version: v2.1.1
date: 2023-02-22
changes:
- desc: add map to the exports
- desc: 'code churn: 4 files changed, 134 insertions(+), 121 deletions(-)'
type: stats
- version: v2.1.0
date: 2023-00-13
changes:
- desc: add function 'matches'
- desc: 'code churn: 7 files changed, 66 insertions(+), 174 deletions(-)'
type: stats
- version: v2.0.0
date: ~
changes:
- desc: 'Fork from the [mothership](github.com/substantial/updeep), v1.2.1'
change_types:
- keywords:
- feat
level: minor
title: Features
- keywords:
- fix
level: patch
title: Bug fixes
- keywords:
- chore
- maint
- refactor
level: patch
title: Package maintenance
- keywords:
- stats
level: patch
title: Statistics

View File

@ -7,7 +7,7 @@ vars:
sh: cat package.json | jq -r .version sh: cat package.json | jq -r .version
PARENT_BRANCH: main PARENT_BRANCH: main
FILE_DELTA: FILE_DELTA:
sh: git diff-ls {{.PARENT_BRANCH}} sh: git diff-ls --diff-filter=d {{.PARENT_BRANCH}}
FIX: false FIX: false
tasks: tasks:
@ -30,7 +30,7 @@ tasks:
integrate: integrate:
deps: [prettier, test, build] deps: [prettier, test, build]
cmds: cmds:
- echo {{ .FILE_DELTA | catLines }} | grep CHANGELOG.yml - changeset status
- sh: git branch | grep '* {{.PARENT_BRANCH}}' - sh: git branch | grep '* {{.PARENT_BRANCH}}'
msg: not on target msg: not on target
- { task: checkout-clean } - { task: checkout-clean }

14
contrib/add_change Executable file
View File

@ -0,0 +1,14 @@
#!/usr/bin/env fish
set name ( cat /usr/share/dict/american-english | shuf | head -3 | \
perl -e 'print lc( join "-", <> )=~ s/[\n\']//rg' )
set filename .changeset/(date +"%FT%T")-$name.md
echo "creating changeset at" $filename
echo -e "---\n\"@yanick/updeep-remeda\": patch|minor|major\n---\n\n" > $filename
git log main... --pretty=short >> $filename
$EDITOR $filename

View File

@ -36,6 +36,7 @@
"remeda": "^1.3.0" "remeda": "^1.3.0"
}, },
"devDependencies": { "devDependencies": {
"@changesets/cli": "^2.27.1",
"@types/node": "*", "@types/node": "*",
"@typescript-eslint/eslint-plugin": "*", "@typescript-eslint/eslint-plugin": "*",
"@typescript-eslint/parser": "*", "@typescript-eslint/parser": "*",