diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4fe6c310..8b579836 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,9 +8,14 @@ on: jobs: files-up-to-date: runs-on: ubuntu-latest + permissions: + pull-requests: write + contents: write steps: - name: Checkout commit uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.head.ref }} - name: Read .nvmrc run: echo ::set-output name=NVMRC::$(cat .nvmrc) @@ -28,6 +33,15 @@ jobs: - name: "`yarn format` changes committed?" run: yarn format:check + - name: Generate README + run: | + yarn gen-readme + git config --global user.name github-actions[bot] + git config --global user.email github-actions[bot]@users.noreply.github.com + git add README.md + git commit -m "Update README.md" + git push + - name: "`yarn gen-readme` changes committed?" run: | yarn gen-readme diff --git a/README.md b/README.md index 012edb53..50a0f5a0 100644 --- a/README.md +++ b/README.md @@ -157,7 +157,7 @@ This guide will always assume you are starting with the latest TypeScript and Re #### VS Code Extensions - refactoring help https://marketplace.visualstudio.com/items?itemName=paulshen.paul-typescript-toolkit -- R+TS Code Snippets (there are a few...) +- React+TypeScript Code Snippets (there are a few...) - https://marketplace.visualstudio.com/items?itemName=infeng.vscode-react-typescript - https://www.digitalocean.com/community/tutorials/the-best-react-extension-for-vs-code - TypeScript official extension https://code.visualstudio.com/docs/languages/typescript diff --git a/docs/basic/setup.md b/docs/basic/setup.md index b2f87f24..1b0a0791 100644 --- a/docs/basic/setup.md +++ b/docs/basic/setup.md @@ -15,7 +15,7 @@ This guide will always assume you are starting with the latest TypeScript and Re ## VS Code Extensions - refactoring help https://marketplace.visualstudio.com/items?itemName=paulshen.paul-typescript-toolkit -- R+TS Code Snippets (there are a few...) +- React+TypeScript Code Snippets (there are a few...) - https://marketplace.visualstudio.com/items?itemName=infeng.vscode-react-typescript - https://www.digitalocean.com/community/tutorials/the-best-react-extension-for-vs-code - TypeScript official extension https://code.visualstudio.com/docs/languages/typescript