File tree Expand file tree Collapse file tree 3 files changed +10
-9
lines changed
Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -17,19 +17,17 @@ jobs:
1717 - name : Checkout the code
1818 uses : actions/checkout@v3
1919
20- - name : Get the latest commit hash
21- run : echo "COMMIT_HASH=$(git rev-parse HEAD)" >> $GITHUB_ENV
22-
23-
2420 - name : Setup Node.js
2521 uses : actions/setup-node@v4
2622 with :
2723 node-version : ' 20'
28-
29-
30- - name : Update commit file
24+ - name : Get the latest commit hash
3125 run : |
26+ echo "COMMIT_HASH=$(git rev-parse HEAD)" >> $GITHUB_ENV
3227 echo "CURRENT_VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV
28+
29+ - name : Update commit file
30+ run : |
3331 echo "{ \"commit\": \"$COMMIT_HASH\" , \"version\": \"$CURRENT_VERSION\" }" > app/commit.json
3432
3533 - name : Commit and push the update
Original file line number Diff line number Diff line change @@ -158,10 +158,13 @@ jobs:
158158 echo "$CHANGELOG_CONTENT" >> $GITHUB_OUTPUT
159159 echo "EOF" >> $GITHUB_OUTPUT
160160
161- - name : Commit and Tag Release
161+ - name : Get the latest commit hash and version tag
162162 run : |
163163 echo "COMMIT_HASH=$(git rev-parse HEAD)" >> $GITHUB_ENV
164164 echo "CURRENT_VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV
165+
166+ - name : Commit and Tag Release
167+ run : |
165168 git pull
166169 echo "{ \"commit\": \"$COMMIT_HASH\" , \"version\": \"$CURRENT_VERSION\" }" > app/commit.json
167170 git add package.json pnpm-lock.yaml changelog.md app/commit.json
Original file line number Diff line number Diff line change 1- { "commit" : " de2cb43d170033c43a6cf436af02e033f66a7e4d " , "version" : " " }
1+ { "commit" : " 47a1def87778d223b21b8468fcfd974b9498be5a " }
You can’t perform that action at this time.
0 commit comments