Skip to content

Commit 0755fb7

Browse files
Run npm build when generating oclif readme during new version release.
1 parent 891f3db commit 0755fb7

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

.github/workflows/onPushToMain.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,18 @@ jobs:
4040
echo "Path is ... $PATH"
4141
git config --global user.email "dishantlangayan@gmail.com"
4242
git config --global user.name "dishantlangayan"
43-
# - name: Generate oclif README
44-
# if: ${{ steps.version-check.outputs.skipped == 'false' }}
45-
# id: oclif-readme
46-
# run: |
47-
# npm install
48-
# npm exec oclif readme
49-
# if [ -n "$(git status --porcelain)" ]; then
50-
# git add .
51-
# git commit -am "chore: update README.md"
52-
# git push -u origin ${{ github.ref_name }}
53-
# fi
43+
- name: Generate oclif README
44+
if: ${{ steps.version-check.outputs.skipped == 'false' }}
45+
id: oclif-readme
46+
run: |
47+
npm install
48+
npm run build
49+
npm exec oclif readme
50+
if [ -n "$(git status --porcelain)" ]; then
51+
git add .
52+
git commit -am "chore: update README.md"
53+
git push -u origin ${{ github.ref_name }}
54+
fi
5455
- name: Create Github Release
5556
uses: ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5
5657
if: ${{ steps.version-check.outputs.skipped == 'false' }}

0 commit comments

Comments
 (0)