Skip to content

NodeJS with Webpack - DEV #12

NodeJS with Webpack - DEV

NodeJS with Webpack - DEV #12

Workflow file for this run

name: NodeJS with Webpack - DEV
on:
workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Build
run: |
npm install
npm run webpack:dev
- name: Upload To S3 Bucket
uses: shallwefootball/s3-upload-action@master
with:
aws_key_id: ${{ secrets.AWS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
aws_bucket: ${{ secrets.AWS_BUCKET }}
source_dir: 'dist'
destination_dir: ''