Skip to content

Update package.json #1480

Update package.json

Update package.json #1480

Workflow file for this run

name: CI
on:
push:
branches:
- 'main'
pull_request:
branches:
- '**'
jobs:
build:
name: (stencil-sass with Stencil version ${{ matrix.stencil_version }})
strategy:
fail-fast: false
matrix:
# Run with multiple different versions of Stencil in parallel:
# 1. DEFAULT - uses the version of Stencil written in `pnpm-lock.yaml`, keeping the same version used by the
# Stencil team as a source of truth
# 2. 4 - will install the latest release under major version 4 of Stencil. This should be kept as long as this
# library supports Stencil v4.Y.Z
stencil_version: ['DEFAULT', '4']
runs-on: ubuntu-latest
steps:
- name: πŸ“₯ Checkout Code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: πŸ“¦ Setup pnpm
uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
- name: 🟒 Setup Node
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version-file: '.nvmrc'
cache: 'pnpm'
- name: πŸ“₯ Install Dependencies
run: pnpm install --frozen-lockfile
shell: bash
- name: πŸ“ Prettier Check
run: pnpm run prettier.dry-run
shell: bash
- name: πŸ“¦ Install Stencil ${{matrix.stencil_version}}
run: pnpm add --save-dev @stencil/core@${{matrix.stencil_version}}
shell: bash
if: ${{ matrix.stencil_version != 'DEFAULT' }}
- name: πŸ“Š Report Stencil Version
run: pnpm ls @stencil/core
shell: bash
- name: πŸ—οΈ Build
run: pnpm run build
shell: bash
- name: πŸ§ͺ Test
run: pnpm run test.ci
shell: bash