From 95c7dfa6dc5d40e518aa222c50711e2135557c0e Mon Sep 17 00:00:00 2001 From: aacerox Date: Tue, 10 Oct 2023 19:23:03 +0200 Subject: [PATCH] refactor: add release workflow --- .github/workflows/nrc-workflow-release.yml | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/nrc-workflow-release.yml diff --git a/.github/workflows/nrc-workflow-release.yml b/.github/workflows/nrc-workflow-release.yml new file mode 100644 index 0000000..a1e25fc --- /dev/null +++ b/.github/workflows/nrc-workflow-release.yml @@ -0,0 +1,44 @@ +name: Node-Rest-Client Release +on: + push: + branches: + - feat/general-upgrade + workflow_dispatch: +jobs: + create-release-branch: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-tags: true + + + + # - id: # + # name: configure git + # run: | + # # setup the username and email. I tend to use 'GitHub Actions Bot' with no email by default + # git --version + # git config user.name "GitHub Actions Bot" + # git config user.email "<>" + # git status + # git tag + # git describe + + - id: readLatestTag + name: read latest tag + run: echo "LATEST_TAG=$(git describe --tags --abbrev=0)" >> "$GITHUB_OUTPUT" + + - run: | + echo "create a release branch using the tag value" + export BRANCH_NAME='release/$LATEST_TAG' + git checkout -b $BRANCH_NAME + git push origin + # test + - id: changesetPR + name: Create Release Pull Request + uses: changesets/action@v1 + with: + version: npm run version:packages + + \ No newline at end of file