feat: added unpluginIconViteOptions helper for more easily configurin… #67
This file contains hidden or 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: Build | |
# not technically necessary because release also runs tests but this way the build badge is separate | |
env: | |
USE_LOCKFILE: ${{ secrets.USE_LOCKFILE }} | |
on: | |
push: | |
branches: [ master , build, experimental ] | |
repository_dispatch: | |
types: [ build ] | |
jobs: | |
build: | |
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')" | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: ["lts/*", "latest"] | |
steps: | |
# region Setup | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
name: Install pnpm | |
id: pnpm-install | |
with: | |
version: latest | |
- uses: actions/setup-node@v4 | |
name: Setting Up Node.js (${{ matrix.node-version }}) | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: ${{ env.USE_LOCKFILE == 'true' && 'pnpm' || '' }} | |
- run: pnpm install --frozen-lockfile | |
if: "env.USE_LOCKFILE == 'true'" | |
- run: pnpm install --no-lockfile | |
if: "env.USE_LOCKFILE != 'true'" | |
# regionend | |
# region Steps | |
- run: pnpm build | |
- run: pnpm lint | |
# for storybook tests | |
- run: pnpx playwright install --with-deps | |
- run: pnpm test | |
# regionend |