Skip to content

Commit

Permalink
ci: create release and changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
vladkens committed Oct 12, 2024
1 parent 4a2e9c5 commit f4db21d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ jobs:
- run: yarn install --frozen-lockfile
- run: yarn ci

- name: Generate changelog
uses: orhun/git-cliff-action@v4
id: changelog
with:
args: --latest --strip header

- name: Print the changelog
run: cat "${{ steps.git-cliff.outputs.changelog }}"

release:
runs-on: ubuntu-latest
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
Expand All @@ -37,6 +46,19 @@ jobs:
- run: yarn install --frozen-lockfile
- run: yarn ci

- name: Generate changelog
uses: orhun/git-cliff-action@v4
id: changelog
with:
args: --latest --strip header

- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Create Github Release
uses: softprops/action-gh-release@v2
with:
body: ${{ steps.changelog.outputs.changelog }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "module",
"name": "apigen-ts",
"version": "0.2.0",
"version": "1.0.0",
"license": "MIT",
"author": "vladkens <[email protected]>",
"repository": "vladkens/apigen-ts",
Expand Down

0 comments on commit f4db21d

Please sign in to comment.