Skip to content

remove feature checks #11024

remove feature checks

remove feature checks #11024

Workflow file for this run

name: Continuous Integration
on: [push]
permissions:
id-token: write # required for provenance and OIDC publish
pull-requests: write # to create pull request (changesets/action)
contents: write # to create release (changesets/action)
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
node: [24, 26]
steps:
- name: Checkout repository
uses: actions/checkout@v7
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Node.js ${{ matrix.node }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node }}
cache: "npm"
- name: Update npm
run: npm install -g npm@11.7.0
- name: Install dependencies
run: npm ci
- name: Build packages
run: npm run build
- name: Check for unused code
run: npm run knip
- name: Lint code
run: npm run lint:ci
- name: Lint styles
run: npm run lint:css
- name: Run unit tests
# For some reason, the global script doesn't run tests in packages/eslint-plugin-circuit-ui
# I suspect it's because it's not an ES module.
run: npm run test:ci && cd packages/eslint-plugin-circuit-ui && npm run test:ci
- name: Upload results to Codecov
uses: codecov/codecov-action@v7
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Create release PR or publish to npm
if: (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/next' || github.ref == 'refs/heads/canary' || startsWith(github.ref, 'refs/heads/release')) && matrix.node == 24
uses: changesets/action@v1
with:
publish: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GH_ACTIONS_PAT }}