Skip to content

1.0.5

1.0.5 #12

Workflow file for this run

name: 'Test'
on:
push:
branches:
- main
- '!renovate/**'
pull_request:
env:
FORCE_COLOR: 2
defaults:
run:
shell: bash
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x, 22.x]
fail-fast: true
permissions:
# Required to checkout the code
contents: write
# Required to put a comment into the pull-request
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Run Install
run: pnpm install --no-frozen-lockfile
- name: Cache pnpm dependencies
uses: actions/cache@v4
with:
path: ~/.pnpm-store
key: pnpm-store-${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml')}}
restore-keys: |
pnpm-store-${{ runner.os }}-
- name: 'Test'
run: pnpm run test
- name: Lint
run: pnpm run lint
- name: Create output folder
run: mkdir -p ./dist
- name: Build
run: pnpm run build
- name: Build Stackblitz
run: pnpm dlx [email protected] publish --compact --pnpm .
- name: Build size report
uses: andresz1/size-limit-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Cleanup
run: rm -rf ./dist