Skip to content

Bump npm-check-updates from 17.1.2 to 17.1.3 #754

Bump npm-check-updates from 17.1.2 to 17.1.3

Bump npm-check-updates from 17.1.2 to 17.1.3 #754

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- main
pull_request: { }
jobs:
build:
name: Build
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install
run: |
npm ci
- name: "Build: Red"
run: |
npm run build:red
mv dist/App dist/app-red
- name: "Build: Green"
run: |
npm run build:green
mv dist/App dist/app-green
- name: "Upload artifacts"
uses: actions/upload-artifact@v4
with:
name: dist
path: dist
deploy-green:
name: "Deploy: green"
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
needs: build
if: github.ref != 'refs/heads/main'
environment:
name: green
url: https://demo.engity.green
steps:
- name: "Download artifacts"
uses: actions/download-artifact@v4
with:
name: dist
path: dist
- name: Deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
command: pages deploy --project-name=demo-engity-green dist/app-green
deploy-red:
name: "Deploy: red"
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/main'
environment:
name: red
url: https://demo.engity.app
steps:
- name: "Download artifacts"
uses: actions/download-artifact@v4
with:
name: dist
path: dist
- name: Deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
command: pages deploy --project-name=demo-engity-red dist/app-red