Skip to content
Open
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
36 changes: 18 additions & 18 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
/* eslint-disable unicorn/prefer-module */
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "unicorn", "jest", "prettier"],
extends: [
"plugin:unicorn/recommended",
"plugin:@typescript-eslint/recommended",
],
rules: {
"prefer-const": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"no-unused-vars": "off",
"no-var": "off",
"unicorn/no-null": "off",
"unicorn/prefer-node-protocol": "off",
"unicorn/filename-case": "off",
"unicorn/prevent-abbreviations": "off",
},
root: true,
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "unicorn", "jest", "prettier"],
extends: [
"plugin:unicorn/recommended",
"plugin:@typescript-eslint/recommended",
],
rules: {
"prefer-const": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"no-unused-vars": "off",
"no-var": "off",
"unicorn/no-null": "off",
"unicorn/prefer-node-protocol": "off",
"unicorn/filename-case": "off",
"unicorn/prevent-abbreviations": "off",
},
};
2 changes: 1 addition & 1 deletion .github/workflows/bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 18
node-version: 20
cache: "npm"
- name: Install dependencies
uses: bahmutov/npm-install@v1
Expand Down
37 changes: 21 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v2

- name: Use Node 18
- name: Use Node 20
uses: actions/setup-node@v1
with:
node-version: 18
node-version: 20

- name: Install dependencies
uses: bahmutov/npm-install@v1
Expand All @@ -34,10 +34,10 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v2

- name: Use Node 18
- name: Use Node 20
uses: actions/setup-node@v1
with:
node-version: 18
node-version: 20

- name: Install dependencies
uses: bahmutov/npm-install@v1
Expand All @@ -52,34 +52,39 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v2

- name: Use Node 18
uses: actions/setup-node@v1
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
node-version: 18
bun-version: latest

- name: Install dependencies
uses: bahmutov/npm-install@v1

- name: Test
run: npm run test -- --ci --coverage --maxWorkers=2
run: bun test

lint:
name: Linter
quality:
name: Code Quality
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Use Node 18
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest

- name: Use Node 20
uses: actions/setup-node@v1
with:
node-version: 18
node-version: 20

- name: Install dependencies
uses: bahmutov/npm-install@v1

- name: Build
run: npm run build
- name: Check exports
run: npm run exports

- name: Lint
run: npm run lint
- name: Quality check
run: npm run quality
9 changes: 6 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@ jobs:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 18
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm install
- run: npm run build
- run: npm publish --access public
- name: Fix package.json format
run: npm pkg fix
- name: Publish to npm
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTOMATION_TOKEN}}
Loading