Skip to content

Feature: lazy loading and merging with existing items. #27

Feature: lazy loading and merging with existing items.

Feature: lazy loading and merging with existing items. #27

name: Push Workflow
on:
push:
branches:
- main
paths:
- "./src/**"
- ".github/workflows/main_push_packages.yaml"
- ".changeset/**"
- pnpm-lock.yaml
- package.json
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
node-version: [20.x, 22.x]
steps:
- uses: actions/[email protected]
- uses: pnpm/[email protected]
with:
version: 8
- uses: actions/[email protected]
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
# install
- run: pnpm install
name: Install dependencies
- name: Generate deps 🍪
run: pnpm run generate
env:
CI: true
- name: Verify Packages 🧷📦,⚡
run: pnpm run precheck
- name: Check packages and create build 🧪,🔨,
run: pnpm run verify
env:
CI: true
# publish
- name: Create release PR and publish packages
if: matrix.node-version == '22.x'
id: changesets
uses: changesets/[email protected]
with:
commit: "chore(release): 📦 version packages"
title: "chore(release): 📦 version packages"
publish: pnpm exec changeset publish
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}