Skip to content

Commit

Permalink
refactor: add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
aacerox committed Oct 10, 2023
1 parent 99b1d9a commit d741550
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/nrc-workflow-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
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-depth: 0
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


0 comments on commit d741550

Please sign in to comment.