Add a files allowlist to the published package (#95) #287
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: CI | |
| on: [push] | |
| jobs: | |
| build: | |
| name: Continuous Deployment | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 'Checkout Repository' | |
| uses: actions/checkout@v4 | |
| - name: 'Setup Node' | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: 'Setup Chrome' | |
| uses: browser-actions/setup-chrome@latest | |
| - name: 'Install, lint and build library' | |
| run: | | |
| npm ci | |
| npm run types | |
| npm run lint | |
| npm run build | |
| - name: 'Run library tests' | |
| run: CHROME_BIN=$(which chrome) npm test | |
| - name: 'Build and test example app' | |
| working-directory: examples/vite-typescript-example | |
| run: | | |
| npm ci | |
| npm run type-check | |
| npm run lint | |
| npm run build | |
| npm test | |
| - name: 'Generate Documentation Website' | |
| run: npm run docs:generate | |
| - name: Deploy Documentation Website 🚀 | |
| if: github.ref == 'refs/heads/master' | |
| uses: JamesIves/github-pages-deploy-action@4.1.5 | |
| with: | |
| branch: gh-pages # The branch the action should deploy to. | |
| folder: documentation-website # The folder the action should deploy. |