File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929 with :
3030 fetch-depth : 0
3131 filter : tree:0
32- token : ${{ secrets.GITHUB_TOKEN }}
3332
3433 - name : Setup Node.js
3534 uses : actions/setup-node@v6
Original file line number Diff line number Diff line change 77 paths :
88 - ' lerna.json'
99
10- concurrency :
11- group : " version-tag"
12- cancel-in-progress : false
13-
1410jobs :
1511 create-tag :
1612 runs-on : ubuntu-latest
@@ -21,19 +17,18 @@ jobs:
2117 uses : actions/checkout@v6
2218 with :
2319 fetch-depth : 2
24- token : ${{ secrets.GITHUB_TOKEN }}
2520
2621 - name : Check if version changed
2722 id : check_version
2823 run : |
29- if git diff HEAD^ lerna.json | grep -q '^+.* "version":'; then
24+ if git diff HEAD^ lerna.json | grep '+ "version": " '; then
3025 echo "version_changed=true" >> $GITHUB_OUTPUT
3126 fi
3227
3328 - name : Create and push tag
3429 if : steps.check_version.outputs.version_changed == 'true'
3530 run : |
36- VERSION=$(grep '"version":' lerna.json | sed 's/.* "version": "\([^"]*\)".* /\1/')
31+ VERSION=$(grep '^ "version":' lerna.json | sed 's/"version": "\([^"]*\)"/\1/')
3732 TAG_NAME="v$VERSION"
3833
3934 git config --global user.name "${{ github.actor }}"
Original file line number Diff line number Diff line change 55 tags :
66 - ' v*'
77
8- concurrency :
9- group : " npm-publish"
10- cancel-in-progress : false
11-
128jobs :
139 publish :
1410 name : Build and Publish to NPM
1915 with :
2016 fetch-depth : 0
2117 filter : tree:0
22- token : ${{ secrets.GITHUB_TOKEN }}
2318
2419 - name : Set up Node.js
2520 uses : actions/setup-node@v6
You can’t perform that action at this time.
0 commit comments