Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions .changeset/config.json

This file was deleted.

32 changes: 16 additions & 16 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@
*.bat text eol=crlf
*.cmd text eol=crlf
*.coffee text
*.css text diff=css
*.htm text diff=html
*.html text diff=html
*.css text eol=lf diff=css
*.htm text eol=lf diff=html
*.html text eol=lf diff=html
*.inc text
*.ini text
*.js text
*.mjs text
*.cjs text
*.json text
*.jsx text
*.less text
*.js text eol=lf
*.mjs text eol=lf
*.cjs text eol=lf
*.json text eol=lf
*.jsx text eol=lf
*.less text eol=lf
*.ls text
*.map text -diff
*.od text
Expand All @@ -41,16 +41,16 @@
*.ps1 text eol=crlf
*.py text diff=python
*.rb text diff=ruby
*.sass text
*.sass text eol=lf
*.scm text
*.scss text diff=css
*.scss text eol=lf diff=css
*.sh text eol=lf
.husky/* text eol=lf
*.sql text
*.styl text
*.styl text eol=lf
*.tag text
*.ts text
*.tsx text
*.ts text eol=lf
*.tsx text eol=lf
*.xml text
*.xhtml text diff=html

Expand All @@ -65,7 +65,7 @@ Dockerfile text
*.mdown text eol=lf diff=markdown
*.mkd text eol=lf diff=markdown
*.mkdn text eol=lf diff=markdown
*.mdtxt text
*.mdtxt text eol=lf
*.mdtext text eol=lf
*.txt text
AUTHORS text
Expand Down Expand Up @@ -100,7 +100,7 @@ TODO text
*.tmpl text
*.tpl text
*.twig text
*.vue text
*.vue text eol=lf

# Configs
*.cnf text
Expand Down
19 changes: 15 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ jobs:

steps:
- name: Check out code
uses: actions/checkout@v6
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 2

- uses: pnpm/action-setup@v4
- uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10

- name: Setup Node.js environment
uses: actions/setup-node@v6
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
Expand All @@ -53,10 +53,21 @@ jobs:
- name: Build
run: pnpm build

- name: Typecheck
if: ${{ matrix.os != 'windows-latest' || matrix.node-version != 22 }}
run: pnpm typecheck

- name: Typecheck (Windows Node 22)
if: ${{ matrix.os == 'windows-latest' && matrix.node-version == 22 }}
run: pnpm exec turbo run typecheck --concurrency=1

- name: TSD
run: pnpm tsd

- name: Test
run: pnpm test

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
74 changes: 46 additions & 28 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,57 +1,75 @@
# repoctl-managed: release/v2
name: Release

on:
push:
branches:
- main
- alpha
- beta
- rc
- next
workflow_dispatch:
inputs:
mode:
description: Release operation
required: true
default: auto
type: choice
options:
- auto
- prepare
- publish
- publish-unpublished
package:
description: Package used for unpublished-version recovery
required: false
type: string
version:
description: Version used for unpublished-version recovery
required: false
type: string

concurrency: ${{ github.workflow }}-${{ github.ref }}
env:
HUSKY: 0
NPM_CONFIG_PROVENANCE: true
npm_config_registry: https://registry.npmjs.org

permissions:
contents: write # to create release (changesets/action)
issues: write # to post issue comments (changesets/action)
pull-requests: write # to create pull request (changesets/action)
id-token: write # to use OpenID Connect token for provenance (changesets/action)
contents: write
pull-requests: write
id-token: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v6
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0

- uses: pnpm/action-setup@v4
- uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10

- name: Setup Node.js environment
uses: actions/setup-node@v6
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: 24
cache: pnpm
registry-url: https://registry.npmjs.org

- name: Install Dependencies
run: pnpm i
run: pnpm install --frozen-lockfile

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: pnpm publish-packages
env:
# this doesn't work but semantic-release works
# see https://github.com/sonofmagic/npm-lib-rollup-template/blob/main/.github/workflows/release.yml#L46
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
npm_config_registry: https://registry.npmjs.org
# https://github.com/changesets/changesets/pull/1659
NPM_CONFIG_PROVENANCE: true

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
- name: Run repo release CI
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
GITHUB_TOKEN: ${{ secrets.REPOCTL_RELEASE_TOKEN || secrets.CHANGESETS_RELEASE_TOKEN || github.token }}
REPO_RELEASE_MODE: ${{ inputs.mode || 'auto' }}
REPO_RELEASE_PACKAGE: ${{ inputs.package }}
REPO_RELEASE_VERSION: ${{ inputs.version }}
run: pnpm exec repo release ci
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
set -e

pnpm exec commitlint --edit "$1"
pnpm exec repo verify commit-msg "$1"
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
set -e

pnpm exec lint-staged
pnpm exec repo verify pre-commit
5 changes: 5 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env sh
set -e

pnpm lint
pnpm typecheck
4 changes: 2 additions & 2 deletions commitlint.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { icebreaker } from '@icebreakers/commitlint-config'
import { defineCommitlintConfig } from 'repoctl/tooling'

export default icebreaker()
export default await defineCommitlintConfig()
2 changes: 1 addition & 1 deletion docs/plans/2026-02-02-units-to-px-design.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Conversion rules:

## Implementation Plan

- Scaffold `packages/postcss-units-to-px` with `npx monorepo create` using the `tsdown` template.
- Scaffold `packages/postcss-units-to-px` with `pnpm exec repo package create` using the `tsdown` template.
- Implement plugin with `createUnitRegex`, `createPropListMatcher`, `createExcludeMatcher`, `declarationExists`, and `maybeBlacklistedSelector`.
- Replace values via regex, skipping strings, `url(...)`, and `var(...)`.
- Support `mediaQuery` replacement on `@media` params.
Expand Down
10 changes: 4 additions & 6 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { icebreaker } from '@icebreakers/eslint-config'
import { defineEslintConfig } from 'repoctl/tooling'

export default icebreaker(
{
ignores: ['**/fixtures/**'],
},
)
export default await defineEslintConfig({
ignores: ['**/fixtures/**'],
})
14 changes: 3 additions & 11 deletions lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
export default {
'*.{js,jsx,mjs,ts,tsx,mts,vue}': [
'eslint --fix --no-warn-ignored',
],
'*.{json,md,mdx,css,html,yml,yaml,scss}': [
// 'prettier --with-node-modules --ignore-path .prettierignore --write',
'eslint --fix --no-warn-ignored',
],
// for rust
// '*.rs': ['cargo fmt --'],
}
import { defineLintStagedConfig } from 'repoctl/tooling'

export default await defineLintStagedConfig()
22 changes: 0 additions & 22 deletions monorepo.config.ts

This file was deleted.

Loading
Loading