add chhose month feature #5
Workflow file for this run
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: Chrome Extension CI | |
| on: | |
| push: | |
| branches: ['**'] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build-and-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v3 | |
| - name: Setup Node | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 20 | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Lint with ESLint | |
| run: npm run lint | |
| - name: Check Prettier format | |
| run: npx prettier --check 'src/**/*.{js,html,css}' | |
| - name: Build extension | |
| run: npm run build | |
| - name: Zip dist/ | |
| run: zip -r dist.zip dist | |
| - name: Check zip file exists | |
| run: test -f dist.zip && echo "dist.zip created" | |
| - name: Upload dist.zip as artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: dist-zip | |
| path: dist.zip | |
| - name: Inspect zip content | |
| run: unzip -l dist.zip | grep -E 'manifest\.json|popup\.html|content\.js' |