New challenges option if new challenge is present #460
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: Node.js CI | |
| on: | |
| push: | |
| branches: ['main'] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.17.0 | |
| # Runs a single command using the runners shell | |
| - name: setup git config | |
| run: | | |
| git config user.name "Sadanand Pai" | |
| git config user.email "sadypai@gmail.com" | |
| - name: NPM installation | |
| run: npm ci | |
| - name: setup deployment | |
| run: | | |
| npm run unit:test | |
| npm run build | |
| npm run copy-to-docs | |
| git add docs -f | |
| git diff --staged --quiet || (git commit -m "build files - github action" --no-verify && git push) |