build(deps-dev): update mini-css-extract-plugin
to v2
#220
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Continuous Integration and Continuous Delivery βπ | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
types: [opened, synchronize] | |
jobs: | |
build: | |
name: Check and Build π·ββοΈ | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node: [14.x, "lts/*"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@v2.4.0 | |
- name: Use NodeJS ${{ matrix.node }} π¦ | |
uses: actions/setup-node@v2.4.1 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: yarn | |
cache-dependency-path: "**/yarn.lock" | |
- name: Install and Check π¨βπ» | |
run: | | |
yarn install --frozen-lockfile --check-files | |
yarn build | |
- name: Update Browserlist π΅οΈββοΈ | |
run: npx browserslist@latest --update-db | |
- name: Build π§ | |
run: yarn build | |
deploy: | |
name: Deploy to production β¨π | |
needs: build | |
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node: ["lts/*"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@v2.4.0 | |
- name: Use NodeJS ${{ matrix.node }} π¦ | |
uses: actions/setup-node@v2.4.1 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: yarn | |
cache-dependency-path: "**/yarn.lock" | |
- name: Install and Build π§ | |
run: | | |
yarn install --frozen-lockfile --check-files | |
npx browserslist@latest --update-db | |
yarn build:webpack | |
- name: Deploy π | |
uses: peaceiris/actions-gh-pages@v3.8.0 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./dist | |
cname: soccerman.latipun.dev |