Add comprehensive CLAUDE.md documentation for AI assistants #40
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: Build Plugin | |
| on: | |
| push: | |
| branches: [main, master] | |
| pull_request: | |
| branches: [main, master] | |
| release: | |
| types: [created] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 'lts/*' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Lint JavaScript | |
| run: npm run lint:js | |
| - name: Lint CSS | |
| run: npm run lint:css | |
| - name: Build plugin | |
| run: npm run build | |
| - name: Create plugin zip | |
| run: npm run plugin-zip | |
| - name: Upload build artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: my-scroll-block-build | |
| path: build/ | |
| retention-days: 30 | |
| - name: Upload plugin zip | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: my-scroll-block-plugin | |
| path: my-scroll-block*.zip | |
| retention-days: 90 | |
| - name: Upload to release (if release event) | |
| if: github.event_name == 'release' | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| files: my-scroll-block*.zip | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |