Skip to content

build(deps-dev): update commitlint monorepo to v19 (major) #499

build(deps-dev): update commitlint monorepo to v19 (major)

build(deps-dev): update commitlint monorepo to v19 (major) #499

Workflow file for this run

# GitHub Actions References:
# https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-output-parameter
name: βš™πŸš€
on:
push:
branches: [main, next, beta, alpha]
pull_request:
types: [opened, synchronize]
jobs:
test_build:
name: βš› Test and Build βš™
strategy:
matrix:
os: [ubuntu-latest]
node: [17.x, "lts/*"]
runs-on: ${{ matrix.os }}
steps:
- name: πŸ›‘ Cancel Previous Running Workflows
uses: styfle/cancel-workflow-action@0.9.1
- name: πŸ›ŽοΈ Checkout
uses: actions/checkout@v2.4.0
- name: πŸ“¦ Use NodeJS ${{ matrix.node }}
uses: actions/setup-node@v2.5.1
with:
node-version: ${{ matrix.node }}
cache: yarn
cache-dependency-path: "**/yarn.lock"
- name: ✨ Install Dependencies
run: yarn --immutable --check-cache
- name: πŸ›  Run Build
run: yarn build
- name: πŸ‘“ Run Linter
run: yarn lint
- name: πŸ’… Run Formatter
run: yarn format
- name: πŸ§ͺ Run Tests
run: yarn test
- name: β™» Cache dist Directory for Publish
uses: actions/cache@v2.1.7
with:
path: |
**/dist/**/*
key: ${{ github.sha }}-${{ runner.os }}-${{ matrix.node }}
release:
name: πŸš€ Release ✨
needs: test_build
if: github.event_name == 'push'
strategy:
matrix:
os: [ubuntu-latest]
node: ["lts/*"]
runs-on: ${{ matrix.os }}
steps:
- name: πŸ›‘ Cancel Previous Running Workflows
uses: styfle/cancel-workflow-action@0.9.1
- name: πŸ›ŽοΈ Checkout
uses: actions/checkout@v2.4.0
with:
fetch-depth: 0
- name: πŸ“¦ Use NodeJS LTS
uses: actions/setup-node@v2.5.1
with:
node-version: ${{ matrix.node }}
cache: yarn
cache-dependency-path: "**/yarn.lock"
- name: β™» Restore dist Directory for Publish
id: restore-dist
uses: actions/cache@v2.1.7
with:
path: |
**/dist/**/*
key: ${{ github.sha }}-${{ runner.os }}-${{ matrix.node }}
- name: ✨ Install Dependencies
run: yarn --immutable --check-cache
- name: πŸš€ Release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GIT_AUTHOR_NAME: latipun7
GIT_AUTHOR_EMAIL: latifsulistyo.me@gmail.com
GIT_COMMITTER_NAME: latipun7
GIT_COMMITTER_EMAIL: latifsulistyo.me@gmail.com
run: yarn release