Merge pull request #197 from ghiscoding/dependabot/npm_and_yarn/stand… #692
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: GitHub Actions | |
| on: | |
| # Trigger the workflow on push or pull request, | |
| # but only for the master branch on Push and any branches on PR | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - '**' | |
| env: | |
| CI: true | |
| jobs: | |
| run: | |
| name: Node ${{ matrix.node }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| steps: | |
| - name: Clone repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 3 | |
| - name: Set Node.js version | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 24 | |
| - run: node --version | |
| - run: npm --version | |
| - name: Install npm dependencies | |
| run: | | |
| cd standalone-with-translate | |
| npm install | |
| - name: Website Prod Build (GitHub demo site) | |
| run: | | |
| cd standalone-with-translate | |
| npm run build | |
| # always deploy (re-publish) GitHub demo page with a Prod build | |
| - name: Deploy to gh-pages | |
| uses: peaceiris/actions-gh-pages@v3 | |
| if: github.ref == 'refs/heads/master' | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./standalone-with-translate/dist |