Updated node-version to 20 in main.yml #197
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@3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "20" | |
registry-url: "https://registry.npmjs.org" | |
- run: npm ci | |
- run: npm test | |
- run: npm run build | |
- name: Publish app | |
uses: cloudflare/[email protected] | |
with: | |
apiToken: ${{ secrets.CF_API_TOKEN }} | |
environment: "production" |