Skip to content

Commit d741550

Browse files
committed
refactor: add release workflow
1 parent 99b1d9a commit d741550

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Node-Rest-Client Release
2+
on:
3+
push:
4+
branches:
5+
- feat/general-upgrade
6+
workflow_dispatch:
7+
jobs:
8+
create-release-branch:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
with:
13+
fetch-depth: 0
14+
fetch-tags: true
15+
16+
17+
18+
# - id: #
19+
# name: configure git
20+
# run: |
21+
# # setup the username and email. I tend to use 'GitHub Actions Bot' with no email by default
22+
# git --version
23+
# git config user.name "GitHub Actions Bot"
24+
# git config user.email "<>"
25+
# git status
26+
# git tag
27+
# git describe
28+
29+
- id: readLatestTag
30+
name: read latest tag
31+
run: echo "LATEST_TAG=$(git describe --tags --abbrev=0)" >> "$GITHUB_OUTPUT"
32+
33+
- run: |
34+
echo "create a release branch using the tag value"
35+
export BRANCH_NAME='release/$LATEST_TAG'
36+
git checkout -b $BRANCH_NAME
37+
git push origin
38+
# test
39+
- id: changesetPR
40+
name: Create Release Pull Request
41+
uses: changesets/action@v1
42+
with:
43+
version: npm run version:packages
44+
45+

0 commit comments

Comments
 (0)