Skip to content

Update subtract.js

Update subtract.js #2

Workflow file for this run

name: Node.js CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: '16.x'
- run: npm install
- run: npm run build
- uses: actions/upload-artifact@v2
with:
name: build
path: build/
test:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: '16.x'
- run: npm install
- uses: actions/download-artifact@v2
with:
name: build
path: build
- run: npm run test
deploy:
needs: test
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: '16.x'
- name: Download Build Artifacts
uses: actions/download-artifact@v2
with:
name: build
path: build
- name: Install Netlify CLI
run: npm install -g netlify-cli
- name: Deploy to Netlify
run: npx netlify deploy --dir=build --site ${{ secrets.NETLIFY_SITE_ID }} --auth ${{ secrets.NETLIFY_AUTH_TOKEN }} --prod