Update sendMessage in ServiceWorker #44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: build CRA | |
| on: | |
| push: | |
| branches: | |
| - main | |
| env: | |
| NODE_VERSION: 14.x # Set Node.js version to use | |
| jobs: | |
| build: | |
| # Find more virtual environments | |
| # https://www.dotnetthailand.com/programming-cookbook/github-actions/github-actions-fundamentals#findmorevirtualenvironments | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout the latest source code from ${{ github.ref }} commit | |
| uses: actions/checkout@v2 | |
| - name: Use Node.js version ${{ env.NODE_VERSION }} | |
| uses: actions/setup-node@v2 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| - name: Build CRA to "build" folder | |
| run: | | |
| yarn install | |
| yarn build | |
| - name: Deploy to gh-pages | |
| # https://github.com/peaceiris/actions-gh-pages/releases | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| personal_token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }} | |
| publish_dir: ./build |