Skip to content

Commit 2c9fc57

Browse files
Generate readme in CI
1 parent 9ec8261 commit 2c9fc57

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/main.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@ on:
88
jobs:
99
files-up-to-date:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
pull-requests: write
1113
steps:
1214
- name: Checkout commit
1315
uses: actions/checkout@v3
16+
with:
17+
ref: ${{ github.event.pull_request.head.ref }}
1418

1519
- name: Read .nvmrc
1620
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
@@ -28,6 +32,15 @@ jobs:
2832
- name: "`yarn format` changes committed?"
2933
run: yarn format:check
3034

35+
- name: Generate README
36+
run: |
37+
yarn gen-readme
38+
git config --global user.name github-actions[bot]
39+
git config --global user.email github-actions[bot]@users.noreply.github.com
40+
git add README.md
41+
git commit -m "Update README.md"
42+
git push
43+
3144
- name: "`yarn gen-readme` changes committed?"
3245
run: |
3346
yarn gen-readme

docs/basic/setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This guide will always assume you are starting with the latest TypeScript and Re
1515
## VS Code Extensions
1616

1717
- refactoring help https://marketplace.visualstudio.com/items?itemName=paulshen.paul-typescript-toolkit
18-
- R+TS Code Snippets (there are a few...)
18+
- React+TypeScript Code Snippets (there are a few...)
1919
- https://marketplace.visualstudio.com/items?itemName=infeng.vscode-react-typescript
2020
- https://www.digitalocean.com/community/tutorials/the-best-react-extension-for-vs-code
2121
- TypeScript official extension https://code.visualstudio.com/docs/languages/typescript

0 commit comments

Comments
 (0)