Skip to content

Update current employer #8

Update current employer

Update current employer #8

Workflow file for this run

name: Deployment Workflow
on:
push:
branches:
- "main"
jobs:
deploy:
name: Deploying
# needs: [test, lint]
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
defaults:
run:
working-directory: web
steps:
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: 16.x
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.OS }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-npm-
${{ runner.OS }}-
- name: Checkout code
uses: actions/checkout@v2
- name: Install dependencies
run: npm ci
- name: Publish
run: npx wrangler publish
env:
CF_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
CF_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}