Merge pull request #175 from SSHari/patch-174 #195
This file contains 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: | |
branches: [main] | |
paths: | |
- ".github/workflows/main.yml" | |
- "app/**/*.ts" | |
- "app/**/*.tsx" | |
- "public/*" | |
- "styles/*" | |
- "worker/*" | |
- "tests/*" | |
- "package.json" | |
- "package-lock.json" | |
- "remix.config.js" | |
- "tsconfig.json" | |
- "wrangler.toml" | |
- "remix.env.d.ts" | |
- "tailwind.config.js" | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: "16.x" | |
registry-url: "https://registry.npmjs.org" | |
- run: npm ci | |
- run: npm test | |
- run: npm run build | |
- name: Publish app | |
uses: cloudflare/wrangler-action@1.3.0 | |
with: | |
apiToken: ${{ secrets.CF_API_TOKEN }} | |
environment: "production" |