Skip to content

Commit

Permalink
🔧 chore: Update CI and support for conventional changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
honzabubenik committed Oct 19, 2023
1 parent bca1669 commit 1184865
Show file tree
Hide file tree
Showing 11 changed files with 11,854 additions and 16,501 deletions.
30 changes: 15 additions & 15 deletions .czrc
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,31 @@
"emoji": "✨",
"code": ":sparkles:",
"description": "A new feature.",
"name": "feature"
"name": "feat"
},
{
"emoji": "🐛",
"code": ":bug:",
"description": "A bug fix.",
"name": "fix"
},
{
"emoji": "⚡️",
"code": ":zap:",
"description": "A code change that improves performance.",
"name": "perf"
},
{
"emoji": "📝",
"code": ":pencil:",
"description": "Documentation changes.",
"name": "docs"
},
{
"emoji": "💄",
"code": ":lipstick:",
"description": "Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc).",
"name": "style"
"emoji": "🧪",
"code": ":test_tube:",
"description": "Adding tests or fixing existing tests.",
"name": "test"
},
{
"emoji": "♻️",
Expand All @@ -40,16 +46,10 @@
"name": "refactor"
},
{
"emoji": "⚡️",
"code": ":zap:",
"description": "A code change that improves performance.",
"name": "perf"
},
{
"emoji": "🧪",
"code": ":test_tube:",
"description": "Adding tests or fixing existing tests.",
"name": "test"
"emoji": "💄",
"code": ":lipstick:",
"description": "Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc).",
"name": "style"
},
{
"emoji": "🔧",
Expand Down
75 changes: 0 additions & 75 deletions .favolosoEmojirc.json

This file was deleted.

19 changes: 12 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,26 @@ jobs:
if: ${{ env.IS_MERGED_RELEASE_PR == 'true' }}
run: npm ci

# release-it configuration reference
# https://github.com/release-it/release-it/blob/fdcf005ced6967a86305a3e10fd1d61a3149407b/docs/configuration.md#configuration
# https://github.com/release-it/release-it/blob/HEAD/config/release-it.json
- name: Decide bump type
if: ${{ env.IS_MERGED_RELEASE_PR == 'false' }}
id: bump-type
run: echo "bump=$(npx conventional-recommended-bump -p @localazy/conventional-changelog-preset)" > "$GITHUB_OUTPUT"

- name: Bump version
if: ${{ env.IS_MERGED_RELEASE_PR == 'false' }}
run: npm version ${{ steps.bump-type.outputs.bump }} --git-tag-version false

- name: Bump version and update changelog
- name: Update changelog
if: ${{ env.IS_MERGED_RELEASE_PR == 'false' }}
run: npx release-it --no-npm.publish --no-git --no-github.release --ci
run: npx conventional-changelog -p @localazy/preset -u -i CHANGELOG.md -s

- name: Preview changelog
if: ${{ env.IS_MERGED_RELEASE_PR == 'false' }}
id: preview-changelog
run: |
{
echo 'changelog<<EOF'
npx conventional-changelog -p @favoloso/emoji -u
npx conventional-changelog -p @localazy/preset -u
echo EOF
} > "$GITHUB_OUTPUT"
Expand All @@ -77,7 +82,7 @@ jobs:
run: |
{
echo 'changelog<<EOF'
npx conventional-changelog -p @favoloso/emoji -r 1
npx conventional-changelog -p @localazy/preset -r 1
echo EOF
} > "$GITHUB_OUTPUT"
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fund=false
16 changes: 0 additions & 16 deletions .release-it.json

This file was deleted.

13 changes: 0 additions & 13 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +0,0 @@
# 2.0.0 (2023-10-13)


### ✨ Features

* feature: Api client v2 ([df4bcee](https://github.com/localazy/api-client/commit/df4bcee))


### 🧰 Other Commits

* chore: Add release workflow ([803d60e](https://github.com/localazy/api-client/commit/803d60e))


2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 Localazy
Copyright (c) 2023 Localazy

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
21 changes: 15 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,28 @@
<img src="https://localazy.com/directus9/assets/20866781-e69b-4e01-9456-05437487b75c" width="50" height="50" alt="localazy-api">
</a>
</p>
<p align="center">
<a href="https://github.com/localazy/api-client"><img src="https://img.shields.io/badge/@localazy-ts--api-066fef?style=for-the-badge" height="22" alt="@localazy/api-client"></a>
<a href="https://npmjs.com/package/@localazy/api-client"><img src="https://img.shields.io/github/package-json/v/localazy/ts-api/main?style=for-the-badge&label=version&color=066fef" height="22" alt="npm"></a>
<a href="https://github.com/localazy/api-client/blob/main/LICENSE"><img src="https://img.shields.io/github/license/localazy/ts-api?style=for-the-badge&color=066fef" height="22" alt="license"></a>

[//]: # (<a href="#"><img src="https://img.shields.io/badge/schema-OpenAPI-066fef?style=for-the-badge&color=066fef" height="22" alt="schema"></a>)
[//]: # (<p align="center">)

[//]: # ( <a href="https://github.com/localazy/api-client"><img src="https://img.shields.io/badge/@localazy-ts--api-066fef?style=for-the-badge" height="22" alt="@localazy/api-client"></a>)

[//]: # ( <a href="https://npmjs.com/package/@localazy/api-client"><img src="https://img.shields.io/github/package-json/v/localazy/ts-api/main?style=for-the-badge&label=version&color=066fef" height="22" alt="npm"></a>)

[//]: # ( <a href="https://github.com/localazy/api-client/blob/main/LICENSE"><img src="https://img.shields.io/github/license/localazy/ts-api?style=for-the-badge&color=066fef" height="22" alt="license">)

[//]: # (</a>)

[//]: # (<a href="#">)

[//]: # ( <img src="https://img.shields.io/badge/schema-OpenAPI-066fef?style=for-the-badge&color=066fef" height="22" alt="schema"></a>)

[//]: # ( <br>)

[//]: # ( <a href="#"><img src="https://img.shields.io/badge/build-passing-success?style=for-the-badge" height="22" alt="build"></a>)

[//]: # ( <a href="#"><img src="https://img.shields.io/badge/coverage-100%25-success?style=for-the-badge" height="22" alt="coverage"></a>)
</p>

[//]: # (</p>)

# 📦 Localazy API Client

Expand Down
3 changes: 0 additions & 3 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ const config: Config = {
'^.+\\.ts$': 'ts-jest',
'^.+\\.js$': 'babel-jest',
},
// transformIgnorePatterns: [
// '<rootDir>/node_modules/(?!lodash-es)',
// ],
collectCoverage: true,
collectCoverageFrom: [
'<rootDir>/src/**/*.ts',
Expand Down
Loading

0 comments on commit 1184865

Please sign in to comment.