-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: upgrade dev deps and fix eslint
- Loading branch information
Showing
70 changed files
with
7,757 additions
and
4,877 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,72 +26,63 @@ jobs: | |
test: | ||
timeout-minutes: 10 | ||
runs-on: ubuntu-latest | ||
name: "Build&Test: node-16.x, ubuntu-latest" | ||
name: 'Build&Test: node-lts, ubuntu-latest' | ||
steps: | ||
- name: ⤵️ Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
# Assume PRs are less than 50 commits | ||
fetch-depth: 50 | ||
|
||
fetch-depth: 0 | ||
- name: Get changed files | ||
id: changed-files | ||
uses: tj-actions/changed-files@57d9664f8e2aa45f26bcb59095f99aa47ae8e90d # v35.4.4 | ||
with: | ||
files: | | ||
docs/** | ||
.github/** | ||
.vscode/** | ||
!.github/workflows/ci.yml | ||
**.md | ||
- name: 🎉 Install pnpm | ||
if: steps.changed-files.outputs.only_changed != 'true' | ||
uses: pnpm/[email protected] | ||
|
||
- name: 🎉 Set node version to 16.x | ||
uses: pnpm/action-setup@v4 | ||
- name: 🎉 Set node version to lts | ||
if: steps.changed-files.outputs.only_changed != 'true' | ||
uses: actions/setup-node@v3 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 16.x | ||
|
||
node-version: lts/* | ||
registry-url: https://registry.npmjs.org/ | ||
cache: pnpm | ||
- name: 🚧 Install deps | ||
if: steps.changed-files.outputs.only_changed != 'true' | ||
run: pnpm install | ||
|
||
- name: 📦 Build | ||
if: steps.changed-files.outputs.only_changed != 'true' | ||
run: pnpm run build | ||
|
||
- name: 🔀 Test unit | ||
if: steps.changed-files.outputs.only_changed != 'true' | ||
run: pnpm run test | ||
|
||
lint: | ||
timeout-minutes: 10 | ||
runs-on: ubuntu-latest | ||
name: "Lint: node-16, ubuntu-latest" | ||
name: 'Lint: node-lts, ubuntu-latest' | ||
steps: | ||
- name: ⤵️ Checkout | ||
uses: actions/checkout@v3 | ||
|
||
uses: actions/checkout@v4 | ||
- name: 🎉 Install pnpm | ||
uses: pnpm/[email protected] | ||
|
||
- name: 🎉 Set node version to 16.x | ||
uses: actions/setup-node@v3 | ||
uses: pnpm/action-setup@v4 | ||
- name: 🎉 Set node version to lts | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 16.x | ||
cache: "pnpm" | ||
|
||
node-version: lts/* | ||
registry-url: https://registry.npmjs.org/ | ||
cache: pnpm | ||
- name: 🚧 Install deps | ||
run: pnpm install | ||
|
||
- name: 📦 Build | ||
run: pnpm run build | ||
|
||
- name: 🔀 Lint | ||
run: pnpm run lint | ||
|
||
# From https://github.com/rhysd/actionlint/blob/main/docs/usage.md#use-actionlint-on-github-actions | ||
- name: 🔀 Check workflow files | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,32 +3,29 @@ name: 🚀 Publish Package | |
on: | ||
push: | ||
tags: | ||
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10 | ||
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
environment: Release | ||
steps: | ||
- name: ⤵️ Checkout | ||
uses: actions/checkout@v3 | ||
|
||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: 🎉 Install pnpm | ||
uses: pnpm/[email protected] | ||
|
||
- name: 🎉 Set node version to 16.x | ||
uses: actions/setup-node@v3 | ||
uses: pnpm/action-setup@v4 | ||
- name: 🎉 Set node version to lts | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 16.x | ||
node-version: lts/* | ||
registry-url: https://registry.npmjs.org/ | ||
cache: "pnpm" | ||
|
||
cache: pnpm | ||
- name: 🚧 Install deps | ||
run: pnpm install | ||
|
||
- name: 📦 Build | ||
run: pnpm run build | ||
|
||
- name: 🔀 Publish package | ||
run: npm publish --access public | ||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { defineBuildConfig } from 'unbuild' | ||
|
||
export default defineBuildConfig({ | ||
entries: [ | ||
'src/index', | ||
'src/worker', | ||
], | ||
declaration: true, | ||
clean: false, | ||
failOnWarn: false, | ||
rollup: { | ||
emitCJS: true, | ||
esbuild: { | ||
tsconfigRaw: { | ||
compilerOptions: { | ||
experimentalDecorators: true, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// @ts-check | ||
import antfu from '@antfu/eslint-config' | ||
|
||
export default antfu( | ||
{ type: 'lib' }, | ||
{ | ||
rules: { | ||
'antfu/consistent-list-newline': ['off'], | ||
'eslint-comments/no-unlimited-disable': ['off'], | ||
}, | ||
}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.