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
5 changes: 5 additions & 0 deletions .changeset/calm-rockets-fetch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@sec-ant/readable-stream": patch
---

Bump deps and switch to OIDC publishing
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
name: Setup and Test
description: Setup environments and run tests
name: Setup
description: Setup the environment

runs:
using: composite
steps:
- name: Setup PNPM
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0

- name: Setup Node.js
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version-file: .node-version
cache: pnpm
registry-url: https://registry.npmjs.org

- name: Upgrade npm for trusted publishing
shell: bash
run: npm install -g npm@latest

- name: Install Dependencies
shell: bash
Expand All @@ -20,7 +25,3 @@ runs:
- name: Install Playwright Browsers
shell: bash
run: pnpm -s playwright install --with-deps

- name: Run tests
shell: bash
run: pnpm -s test
6 changes: 3 additions & 3 deletions .github/workflows/preview-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Setup and Test
uses: ./.github/actions/setup-and-test
- name: Setup
uses: ./.github/actions/setup

- name: Bump Version
run: pnpm -s changeset version
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Setup and Test
uses: ./.github/actions/setup-and-test
- name: Setup
uses: ./.github/actions/setup

- name: Test
run: pnpm -s test:ci

- name: Get Next Package Version
id: package-version
run: echo "version=$(pnpm -s changeset status --output=release.json && jq -r '.releases[0].newVersion // '$(npm pkg get version)'' release.json && rm release.json)" >> $GITHUB_OUTPUT

- name: Create Release Pull Request or Publish to NPM
id: changesets
uses: changesets/action@e0145edc7d9d8679003495b11f87bd8ef63c0cba # v1.5.3
uses: changesets/action@6a0a831ff30acef54f2c6aa1cbbc1096b066edaf # v1.7.0
with:
publish: pnpm -s changeset publish
commit: "chore(release): v${{ steps.package-version.outputs.version }}"
env:
GITHUB_TOKEN: ${{ secrets.CHANGESET_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20 changes: 20 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Test

on: [pull_request]

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

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Setup
uses: ./.github/actions/setup

- name: Test
run: pnpm -s test:ci
2 changes: 1 addition & 1 deletion .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"*.{js,ts,cjs,mjs,cts,mts,d.cts,d.mts,jsx,tsx,json,jsonc}": [
"biome check --apply --no-errors-on-unmatched --files-ignore-unknown=true"
"biome check --write --no-errors-on-unmatched --files-ignore-unknown=true"
],
"*.{md,yml,yaml,css,html}": ["prettier --write"]
}
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
lts/*
24
6 changes: 3 additions & 3 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
},
"overrides": [
{
"include": ["*.json"],
"includes": ["**/*.json"],
"json": {
"parser": {
"allowTrailingCommas": true
}
}
},
{
"include": ["tests"],
"includes": ["**/tests/**"],
"linter": {
"rules": {
"performance": {
Expand All @@ -32,7 +32,7 @@
}
},
{
"include": ["package.json"],
"includes": ["**/package.json"],
"json": {
"formatter": {
"lineWidth": 1
Expand Down
42 changes: 22 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,32 +64,34 @@
"build": "vite build",
"copy": "copy-files-from-to",
"postbuild": "tsc && pnpm -s copy",
"test:chromium": "vitest run --browser.name=chromium",
"test:firefox": "vitest run --browser.name=firefox",
"test": "pnpm -s test:chromium && pnpm -s test:firefox",
"test:chromium": "vitest run --browser=chromium",
"test:firefox": "vitest run --browser=firefox",
"test": "vitest run",
"test:ci": "vitest run",
"test:coverage": "vitest run --coverage",
"test:ui": "vitest --ui --coverage",
"prepublishOnly": "pnpm -s build",
"bump-biome:latest": "pnpm add -DE @biomejs/biome@latest",
"bump-biome:nightly": "pnpm add -DE @biomejs/biome@nightly"
},
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@changesets/cli": "^2.27.9",
"@commitlint/cli": "^20.0.0",
"@commitlint/config-conventional": "^20.0.0",
"@vitest/browser": "^2.1.2",
"@vitest/coverage-istanbul": "^3.0.0",
"@vitest/ui": "^3.0.0",
"concurrently": "^9.0.1",
"copy-files-from-to": "^3.11.0",
"lint-staged": "^16.0.0",
"playwright": "^1.47.2",
"prettier": "^3.3.3",
"simple-git-hooks": "^2.11.1",
"typescript": "^5.6.2",
"vite": "^5.4.8",
"vitest": "^2.1.2"
"@biomejs/biome": "2.4.13",
"@changesets/cli": "^2.31.0",
"@commitlint/cli": "^20.5.2",
"@commitlint/config-conventional": "^20.5.0",
"@vitest/browser": "^4.1.5",
"@vitest/browser-playwright": "4.1.5",
"@vitest/coverage-istanbul": "^4.1.5",
"@vitest/ui": "^4.1.5",
"concurrently": "^9.2.1",
"copy-files-from-to": "^4.0.0",
"lint-staged": "^16.4.0",
"playwright": "^1.59.1",
"prettier": "^3.8.3",
"simple-git-hooks": "^2.13.1",
"typescript": "^6.0.3",
"vite": "^8.0.10",
"vitest": "^4.1.5"
},
"packageManager": "pnpm@10.17.1+sha512.17c560fca4867ae9473a3899ad84a88334914f379be46d455cbf92e5cf4b39d34985d452d2583baf19967fa76cb5c17bc9e245529d0b98745721aa7200ecaf7a"
"packageManager": "pnpm@10.33.2+sha512.a90faf6feeab71ad6c6e57f94e0fe1a12f5dcc22cd754db40ae9593eb6a3e0b6b12e3540218bb37ae083404b1f2ce6db2a4121e979829b4aff94b99f49da1cf8"
}
Loading
Loading