Skip to content

Merge pull request #9 from direvus/dependabot/npm_and_yarn/frontend/r… #88

Merge pull request #9 from direvus/dependabot/npm_and_yarn/frontend/r…

Merge pull request #9 from direvus/dependabot/npm_and_yarn/frontend/r… #88

Workflow file for this run

name: Node CI
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: npm install, build, and test
run: |
npm install
npm run build --if-present
npm test
working-directory: frontend
env:
CI: true
- name: S3 Sync
uses: jakejarvis/[email protected]
with:
args: --acl public-read --delete
env:
AWS_S3_BUCKET: chess.swords.id.au
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ap-southeast-2
SOURCE_DIR: "frontend/static"