Skip to content

Commit f4f930c

Browse files
committed
🐙(CD workflow): Improve script
-
1 parent 6a431ac commit f4f930c

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

.github/workflows/CD.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,13 @@ jobs:
1313
- uses: actions/setup-node@v1
1414
with:
1515
node-version: 14
16-
- run: git config --global user.name "JeremyDolle"
17-
- run: git config --global user.email "[email protected]"
18-
- run: npm version ${{ github.event.release.tag_name }}
19-
- run: git commit -am "🏷️(version) Update boilerplate to version ${{ github.event.release.tag_name }}"
20-
- run: git push
16+
- name: Update package.json and push
17+
run: |
18+
git config --global user.name "JeremyDolle"
19+
git config --global user.email "[email protected]"
20+
npm version ${{ github.event.release.tag_name }}
21+
git commit -am "🏷️(version) Update boilerplate to version ${{ github.event.release.tag_name }}"
22+
git push
2123
env:
2224
github-token: ${{ secrets.GITHUB_TOKEN }}
2325
- uses: JS-DevTools/npm-publish@v1
@@ -31,11 +33,13 @@ jobs:
3133
- uses: actions/setup-node@v1
3234
with:
3335
node-version: 14
34-
- run: git config --global user.name "JeremyDolle"
35-
- run: git config --global user.email "[email protected]"
36-
- run: npm version ${{ github.event.release.tag_name }}
37-
- run: git commit -am "🏷️(version) Update boilerplate to version ${{ github.event.release.tag_name }}"
38-
- run: git push
36+
- name: Update package.json and push
37+
run: |
38+
git config --global user.name "JeremyDolle"
39+
git config --global user.email "[email protected]"
40+
npm version ${{ github.event.release.tag_name }}
41+
git commit -am "🏷️(version) Update boilerplate to version ${{ github.event.release.tag_name }}"
42+
git push
3943
env:
4044
github-token: ${{ secrets.GITHUB_TOKEN }}
4145
- uses: JS-DevTools/npm-publish@v1

0 commit comments

Comments
 (0)