build(deps-dev): update commitlint monorepo to v19 (major) #453
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: ⚙🚀 | |
on: | |
push: | |
branches: [main, "**.x", 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: Checkout 🛎️ | |
uses: actions/[email protected] | |
- name: Use NodeJS ${{ matrix.node }} 📦 | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ matrix.node }} | |
cache: yarn | |
- name: Install Dependencies ✨ | |
run: yarn --immutable --check-cache | |
- name: Run Linter 👨🏻💻 | |
run: yarn lint | |
- name: Run Formatter 💅 | |
run: yarn format | |
- name: Build Theme 🎁 | |
run: yarn build | |
release: | |
name: Release ✨🚀 | |
runs-on: ubuntu-latest | |
needs: test_build | |
if: github.event_name == 'push' | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Use NodeJS LTS 📦 | |
uses: actions/[email protected] | |
with: | |
node-version: "lts/*" | |
cache: yarn | |
- name: Install Dependencies ✨ | |
run: yarn --immutable --check-cache | |
- name: Install vsce 💻 | |
run: npm install -g vsce | |
- name: Release 🚀 | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
VSCE_PAT: ${{ secrets.VSCE_PAT }} | |
run: | | |
yarn build | |
yarn semantic-release |