From 7cfa9bea4c4d939c421f0f3c2882fa72c1055006 Mon Sep 17 00:00:00 2001 From: Vlad Pronsky Date: Sat, 12 Oct 2024 22:15:47 +0300 Subject: [PATCH] ci: create release and changelog --- .github/workflows/ci.yml | 13 +++++++++++++ package.json | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 67c54bb..9b12c01 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,6 +37,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.content }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/package.json b/package.json index d563840..dfd1e2d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "type": "module", "name": "apigen-ts", - "version": "0.2.0", + "version": "1.0.0", "license": "MIT", "author": "vladkens ", "repository": "vladkens/apigen-ts",