From c122ea8c96c75d56a66580625795e4dad5770c36 Mon Sep 17 00:00:00 2001 From: Pedro Rezende Date: Wed, 8 Jan 2025 20:13:19 -0300 Subject: [PATCH] feat: adding release-notes-generator --- .github/workflows/release-namadillo.yml | 44 ------------------------- .github/workflows/release.yml | 4 +-- .releaserc.json | 1 + package.json | 1 + yarn.lock | 3 +- 5 files changed, 5 insertions(+), 48 deletions(-) delete mode 100644 .github/workflows/release-namadillo.yml diff --git a/.github/workflows/release-namadillo.yml b/.github/workflows/release-namadillo.yml deleted file mode 100644 index 805ca07e4d..0000000000 --- a/.github/workflows/release-namadillo.yml +++ /dev/null @@ -1,44 +0,0 @@ -name: Create Namadillo draft release -on: - workflow_dispatch: - inputs: - INCREMENT: - required: true - type: string - default: "patch" - description: "Version increment (major/minor/patch etc.)" - -jobs: - release: - runs-on: ubuntu-latest - defaults: - run: - working-directory: ./apps/namadillo - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Install yarn dependencies - uses: ./.github/actions/yarn-cache - - - name: Restore Rust cache - uses: ./.github/actions/rust-cache - with: - cache-name: build - - - name: Install protoc - run: sudo apt-get install -y protobuf-compiler - - - name: Build Namadillo - run: yarn build - - - name: Configure git identity - run: | - git config user.name "${GITHUB_ACTOR}" - git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" - - - name: Create a draft release - run: npx release-it --increment $INCREMENT - env: - INCREMENT: ${{ inputs.INCREMENT }} - GITHUB_TOKEN: ${{ github.token }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b9a396e47f..2f231c9b30 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,8 +1,6 @@ name: Release on: - push: - branches: - - main + workflow-dispatch: permissions: contents: read # for checkout diff --git a/.releaserc.json b/.releaserc.json index f448d670b3..2039ecfea2 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -4,6 +4,7 @@ "branches": ["main"] }, "plugins": [ + "@semantic-release/release-notes-generator", [ "@semantic-release/commit-analyzer", { diff --git a/package.json b/package.json index b0fa09aae4..6e10a83044 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "@chain-registry/types": "^0.45.80", "@release-it/conventional-changelog": "^8.0.1", "@semantic-release/commit-analyzer": "^13.0.1", + "@semantic-release/release-notes-generator": "^14.0.3", "@typescript-eslint/eslint-plugin": "^8.4.0", "@typescript-eslint/parser": "^8.4.0", "eslint": "^8.57.0", diff --git a/yarn.lock b/yarn.lock index f610f66e2f..c16695adfd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4905,7 +4905,7 @@ __metadata: languageName: node linkType: hard -"@semantic-release/release-notes-generator@npm:^14.0.0-beta.1": +"@semantic-release/release-notes-generator@npm:^14.0.0-beta.1, @semantic-release/release-notes-generator@npm:^14.0.3": version: 14.0.3 resolution: "@semantic-release/release-notes-generator@npm:14.0.3" dependencies: @@ -17398,6 +17398,7 @@ __metadata: "@chain-registry/types": "npm:^0.45.80" "@release-it/conventional-changelog": "npm:^8.0.1" "@semantic-release/commit-analyzer": "npm:^13.0.1" + "@semantic-release/release-notes-generator": "npm:^14.0.3" "@typescript-eslint/eslint-plugin": "npm:^8.4.0" "@typescript-eslint/parser": "npm:^8.4.0" chain-registry: "npm:^1.63.100"