-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
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 "latestTag=$(git describe --tags --abbrev=0)" >> "$GITHUB_OUTPUT" | ||
|
||
- id: createReleaseBranch | ||
name: create release branch | ||
env: | ||
RELEASE_TAG: ${{ steps.readLatestTag.outputs.latestTag }} | ||
run: | | ||
export BRANCH_NAME="release/$RELEASE_TAG" | ||
git checkout -b $BRANCH_NAME | ||
git push --set-upstream origin release/$RELEASE_TAG | ||
# test | ||
- id: changesetPR | ||
name: Create Release Pull Request | ||
uses: changesets/action@v1 | ||
with: | ||
version: npm run version:packages | ||
|
||
|