From f7042c1ea2188fd3fbc99c8d16840dc88ffe9108 Mon Sep 17 00:00:00 2001 From: meysamhadeli Date: Wed, 25 Jan 2023 01:00:12 +0330 Subject: [PATCH] . --- .github/release-drafter.yml | 5 ++--- .github/workflows/build-publish-docker.yml | 24 +++++++++++----------- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index 426e305..b3c5e9a 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -8,12 +8,11 @@ # This release drafter follows the conventions from https://keepachangelog.com, https://common-changelog.org/ # https://www.conventionalcommits.org -name-template: 'v$RESOLVED_VERSION' -tag-template: 'v$RESOLVED_VERSION' + template: | ## What Changed 👀 $CHANGES - **Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION + categories: - title: 🚀 Features labels: diff --git a/.github/workflows/build-publish-docker.yml b/.github/workflows/build-publish-docker.yml index cce1dd3..384d1cd 100644 --- a/.github/workflows/build-publish-docker.yml +++ b/.github/workflows/build-publish-docker.yml @@ -15,19 +15,19 @@ jobs: - name: Checkout code uses: actions/checkout@v3 - - name: Process version of the tag - id: version - uses: ncipollo/semantic-version-action@v1 - - name: Dump steps context + - name: Setup Node.js + uses: actions/setup-node@v2 + with: + node-version: 14 + + - name: Release Version env: - STEPS_CONTEXT: ${{ toJson(steps.version.outputs) }} - run: echo "$STEPS_CONTEXT" - # - # - name: Get release tag - # run: echo "::set-output name=tag::$(echo $GITHUB_REF)" - # - # - name: Print release tag - # run: echo "The release tag is ${{ steps.get_tag.outputs.tag }}" + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: semantic-release-bot/action@v1.1.1 + with: + commit-message-format: '${conventionalCommit.type}(${conventionalCommit.scope}): ${conventionalCommit.subject}' + conventions: '@semantic-release-bot/conventional-commits' + dry-run: true - name: Login to DockerHub uses: docker/login-action@v2