Skip to content

Release RC packages (rc) #2241

Release RC packages (rc)

Release RC packages (rc) #2241

Workflow file for this run

name: 'Solid CI'
on:
pull_request:
branches:
- '*'
push:
branches:
- main
- next
jobs:
job:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
registry-url: "https://registry.npmjs.org"
cache: "pnpm"
# Cheap guard for the workspace layout the release pipeline depends on
# (link stubs, workspace-resolved compiler, no registry pins in the
# lockfile). Violations deadlock the release commit — see the script.
- name: Release invariants
run: node scripts/check-release-invariants.mjs
- name: Installing deps
run: pnpm install
# The compiler resolves to the workspace (pnpm-workspace.yaml overrides),
# so suites that load it through @solidjs/vite-plugin (element, web) need
# the local binding built — the root build script skips the Rust build.
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
workspaces: packages/compiler
- name: Building compiler binding
run: pnpm --filter @solidjs/compiler run build
- name: Building
run: pnpm run build
- name: Testing & Coverage
run: |
pnpm run test
pnpm run coverage
- name: Coveralls
uses: coverallsapp/github-action@v2
with:
base-path: packages/solid
path-to-lcov: "./packages/solid/coverage/lcov.info"
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Archive production artifacts
uses: actions/upload-artifact@v4
with:
name: dist-folder
path: |
'*/dist'
'*/types'