Skip to content

Commit e186260

Browse files
committed
🐙(CD workflow): Improve CD script to update package.json
-
1 parent 7240f24 commit e186260

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/CD.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +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
21+
env:
22+
github-token: ${{ secrets.GITHUB_TOKEN }}
1623
- uses: JS-DevTools/npm-publish@v1
1724
with:
1825
token: ${{ secrets.NPM_TOKEN }}
@@ -24,6 +31,13 @@ jobs:
2431
- uses: actions/setup-node@v1
2532
with:
2633
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
39+
env:
40+
github-token: ${{ secrets.GITHUB_TOKEN }}
2741
- uses: JS-DevTools/npm-publish@v1
2842
with:
2943
token: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)