Skip to content

Commit

Permalink
chore(deps): update dependency @favware/cliff-jumper to v4 (#107)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency @favware/cliff-jumper to v4

* chore(deps): migrate dependency @favware/cliff-jumper to v4

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Hezekiah Hendry <hezekiah.hendry@gmail.com>
  • Loading branch information
renovate[bot] and RealShadowNova committed Jun 13, 2024
1 parent 9ab04d6 commit 8fbfe38
Show file tree
Hide file tree
Showing 7 changed files with 452 additions and 105 deletions.
5 changes: 5 additions & 0 deletions .cliff-jumperrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@ packagePath: .
monoRepo: false
commitMessageTemplate: 'chore(release): release {{new-version}}'
tagTemplate: v{{new-version}}
identifierBase: false
pushTag: true
githubRelease: true
githubReleaseLatest: true
githubRepo: RealShadowNova/better-serialize
2 changes: 1 addition & 1 deletion .github/workflows/continuous-delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
yarn config set npmAuthToken ${NODE_AUTH_TOKEN}
yarn config set npmPublishRegistry "https://registry.yarnpkg.com"
yarn bump --preid "${TAG}.$(git rev-parse --verify --short HEAD)"
yarn bump --preid "${TAG}.$(git rev-parse --verify --short HEAD)" --skip-changelog
yarn npm publish --tag ${TAG}
env:
Expand Down
47 changes: 47 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Publish

on:
workflow_dispatch:

jobs:
PublishPackage:
name: Publish better-serialize
runs-on: ubuntu-latest

if: github.repository_owner == 'RealShadowNova'

steps:
- name: Checkout Project
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
with:
fetch-depth: 0
ref: main
token: ${{ secrets.NOVA_TOKEN}}
- name: Use Node.js v20
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4
with:
node-version: 20
cache: yarn
registry-url: https://registry.yarnpkg.com/
- name: Install Dependencies
run: yarn --immutable
- name: Configure Git
run: |
git remote set-url origin "https://${GITHUB_TOKEN}:x-oauth-basic@github.com/${GITHUB_REPOSITORY}.git"
git config --local user.email "${GITHUB_EMAIL}"
git config --local user.name "${GITHUB_USER}"
env:
GITHUB_USER: github-actions[bot]
GITHUB_EMAIL: 41898282+github-actions[bot]@users.noreply.github.com
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Bump Version & Make Release
run: yarn bump
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish to NPM
run: |
yarn config set npmAuthToken ${NODE_AUTH_TOKEN}
yarn config set npmPublishRegistry "https://registry.yarnpkg.com"
yarn npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
5 changes: 0 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
{
"eslint.validate": ["typescript"],
"editor.tabSize": 2,
"editor.useTabStops": false,
"editor.insertSpaces": true,
"editor.detectIndentation": false,
"editor.codeActionsOnSave": {
"source.fixAll": "explicit",
"source.fixAll.eslint": "explicit",
Expand Down
49 changes: 33 additions & 16 deletions cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@ header = """
All notable changes to this project will be documented in this file.\n
"""
body = """
{%- macro remote_url() -%}
https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}
{%- endmacro -%}
{% if version %}\
# [{{ version | trim_start_matches(pat="v") }}]\
{% if previous %}\
{% if previous.version %}\
(https://github.com/RealShadowNova/better-serialize/compare/{{ previous.version }}...{{ version }})\
({{ self::remote_url() }}/compare/{{ previous.version }}...{{ version }})\
{% else %}\
(https://github.com/RealShadowNova/better-serialize/tree/{{ version }})\
({{ self::remote_url() }}/tree/{{ version }})\
{% endif %}\
{% endif %} \
- ({{ timestamp | date(format="%Y-%m-%d") }})
Expand All @@ -24,11 +27,13 @@ body = """
- {% if commit.scope %}\
**{{commit.scope}}:** \
{% endif %}\
{{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}](https://github.com/RealShadowNova/better-serialize/commit/{{ commit.id }}))\
{{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ commit.id }}))\
{% if commit.github.pr_number %} (\
[#{{ commit.github.pr_number }}]({{ self::remote_url() }}/pull/{{ commit.github.pr_number }}) by @{{ commit.github.username }}) \
{%- endif %}\
{% if commit.breaking %}\
\n\n {% raw %} {% endraw %}### πŸ’₯ Breaking Changes:\n\n\
{% for breakingChange in commit.footers %}\
{% raw %} {% endraw %}- {{ breakingChange }}\n\
\n{% raw %} {% endraw %}- πŸ’₯ **{{ breakingChange.token }}{{ breakingChange.separator }}** {{ breakingChange.value }}\
{% endfor %}\
{% endif %}\
{% endfor %}
Expand All @@ -41,20 +46,32 @@ footer = ""
conventional_commits = true
filter_unconventional = true
commit_parsers = [
{ message = "^feat", group = "πŸš€ Features"},
{ message = "^fix", group = "πŸ› Bug Fixes"},
{ message = "^docs", group = "πŸ“ Documentation"},
{ message = "^perf", group = "πŸƒ Performance"},
{ message = "^refactor", group = "🏠 Refactor"},
{ message = ".*deprecated", body = ".*deprecated", group = "🚨 Deprecation"},
{ message = "^style", group = "πŸͺž Styling"},
{ message = "^test", group = "πŸ§ͺ Testing"},
{ message = "^chore", skip = true},
{ message = "^ci", skip = true},
{ body = ".*security", group = "πŸ›‘οΈ Security"},
{ message = "^feat", group = "πŸš€ Features" },
{ message = "^fix", group = "πŸ› Bug Fixes" },
{ message = "^docs", group = "πŸ“ Documentation" },
{ message = "^perf", group = "πŸƒ Performance" },
{ message = "^refactor", group = "🏠 Refactor" },
{ message = "^typings", group = "⌨️ Typings" },
{ message = "^types", group = "⌨️ Typings" },
{ message = ".*deprecated", body = ".*deprecated", group = "🚨 Deprecation" },
{ message = "^revert", skip = true },
{ message = "^style", group = "πŸͺž Styling" },
{ message = "^test", group = "πŸ§ͺ Testing" },
{ message = "^chore", skip = true },
{ message = "^ci", skip = true },
{ message = "^build", skip = true },
{ body = ".*security", group = "πŸ›‘οΈ Security" },
]
commit_preprocessors = [
# remove issue numbers from commits
{ pattern = '\s\((\w+\s)?#([0-9]+)\)', replace = "" },
]
filter_commits = true
tag_pattern = "v[0-9]*"
ignore_tags = ""
topo_order = false
sort_commits = "newest"

[remote.github]
owner = "RealShadowNova"
repo = "better-serialize"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"devDependencies": {
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@favware/cliff-jumper": "^3.0.3",
"@favware/cliff-jumper": "^4.0.2",
"@favware/npm-deprecate": "^1.0.7",
"@sapphire/eslint-config": "^5.0.5",
"@sapphire/ts-config": "^5.0.1",
Expand Down
Loading

0 comments on commit 8fbfe38

Please sign in to comment.