Skip to content

chore(pnpm): Replacing yarn with pnpm, completed migration - FRONT-4693 #9639

chore(pnpm): Replacing yarn with pnpm, completed migration - FRONT-4693

chore(pnpm): Replacing yarn with pnpm, completed migration - FRONT-4693 #9639

Workflow file for this run

name: CI
on:
pull_request:
types: [opened, synchronize]
push:
branches:
- '*-dev'
jobs:
semantic:
name: Validate PR title
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
audit:
name: audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.9.0
- name: Install pnpm
run: npm install -g pnpm
- name: Test
run: ./scripts/audit.sh
tests:
name: tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.9.0
- name: Install pnpm
run: npm install -g pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build icons
run: pnpm build:icons
- name: Build presets
run: pnpm build:presets
- name: Test
run: pnpm test
size:
name: size
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.9.0
- name: Install pnpm
run: npm install -g pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build presets
run: pnpm dist:presets
- name: Test
run: pnpm size-limit
deploy-pull-request-preview:
name: deploy preview
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.9.0
- name: Install pnpm
run: npm install -g pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build icons
run: pnpm build:icons
- name: Package application
run: pnpm dist
- name: Deploy to Netlify
uses: nwtgck/[email protected]
with:
alias: ecl-preview-${{ github.event.number }}
publish-dir: 'dist/website'
github-token: ${{ secrets.GITHUB_TOKEN }}
env:
NETLIFY: true
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
deploy-release-branch:
name: deploy release branch
runs-on: ubuntu-latest
if: github.event_name == 'push' && endsWith(github.ref, '-dev')
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.9.0
- name: Install pnpm
run: npm install -g pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build icons
run: pnpm build:icons
- name: Package application
run: pnpm dist
- name: Deploy to Netlify
uses: nwtgck/[email protected]
with:
alias: ${{ github.ref_name }}
publish-dir: 'dist/website'
github-token: ${{ secrets.GITHUB_TOKEN }}
env:
NETLIFY: true
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}