Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

chore(deps): bump webpack-dev-middleware from 5.3.3 to 5.3.4 (#181) #91

chore(deps): bump webpack-dev-middleware from 5.3.3 to 5.3.4 (#181)

chore(deps): bump webpack-dev-middleware from 5.3.3 to 5.3.4 (#181) #91

Workflow file for this run

name: release
on:
push:
branches:
- main
jobs:
release:
name: release
environment: main
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@v2
- run: npm install --force
- run: npm run lint
- run: npm run test
- env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
deploy:
name: deploy
needs: release
environment: main
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@v2
- run: npm install --force
- run: npm run build
- env:
AWS_EC2_METADATA_DISABLED: true
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
BUCKET_NAME: ${{ secrets.BUCKET_NAME }}
DISTRIBUTION_ID: ${{ secrets.DISTRIBUTION_ID }}
run: |
aws s3 sync build s3://$BUCKET_NAME --delete \
&& \
aws cloudfront create-invalidation --distribution-id=$DISTRIBUTION_ID --paths="/*"