Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
refactor: use changelogen instead of changelogithub
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolassutter committed Nov 29, 2023
1 parent af48e86 commit 67d9746
Show file tree
Hide file tree
Showing 6 changed files with 119 additions and 129 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Release
on:
push:
tags:
- "v*"
- "!v*-beta*"
- 'v*'
- '!v*-beta*'

jobs:
release:
Expand All @@ -27,15 +27,18 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: "https://registry.npmjs.org"
registry-url: 'https://registry.npmjs.org'

- name: Install deps
run: pnpm install

- name: Builds
run: pnpm build

- run: pnpm changelogithub
- name: Echo tag name
run: echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV

- run: pnpm changelogen gh release ${{ env.TAG_NAME }}
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

Expand Down
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

## v1.5.0...v2.0.0

[compare changes](https://github.com/alsacreations/eslint/compare/v1.5.0...v2.0.0)

### 🚀 Enhancements

- ⚠️ Stop modifying users eslint config file with ast ([af48e86](https://github.com/alsacreations/eslint/commit/af48e86))

### 💅 Refactors

- Use `changelogen` instead of `changelogithub` ([e211e12](https://github.com/alsacreations/eslint/commit/e211e12))

### 🏡 Chore

- Use `.mjs` prettier config ([f0b602b](https://github.com/alsacreations/eslint/commit/f0b602b))
- Remove useless vs code setting ([60927dd](https://github.com/alsacreations/eslint/commit/60927dd))
- Release v2.0.0 ([6991ab0](https://github.com/alsacreations/eslint/commit/6991ab0))

#### ⚠️ Breaking Changes

- ⚠️ Stop modifying users eslint config file with ast ([af48e86](https://github.com/alsacreations/eslint/commit/af48e86))

### ❤️ Contributors

- Nicolas Sutter <[email protected]>

37 changes: 0 additions & 37 deletions changelogithub.config.ts

This file was deleted.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"bin": "dist/bin/bin.js",
"scripts": {
"build": "tsup",
"release": "bumpp package.json --commit --push --tag",
"release": "pnpm changelogen --output CHANGELOG.md --release --bump --push",
"prepare": "husky install",
"bin-exec": "tsx bin/bin.ts init"
},
Expand All @@ -65,7 +65,7 @@
"@types/node": "^20.8.4",
"@types/prettier": "^2.7.3",
"bumpp": "^9.2.0",
"changelogithub": "^0.13.1",
"changelogen": "^0.5.5",
"eslint": "^8.54.0",
"husky": "^8.0.3",
"read-pkg": "^8.1.0",
Expand All @@ -90,4 +90,4 @@
"tsup": "^7.2.0",
"type-fest": "^4.4.0"
}
}
}
Loading

0 comments on commit 67d9746

Please sign in to comment.