Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
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
65 changes: 0 additions & 65 deletions .eslintignore

This file was deleted.

51 changes: 0 additions & 51 deletions .github/workflows/on-dependabot.yml

This file was deleted.

176 changes: 77 additions & 99 deletions .github/workflows/on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,120 +6,98 @@ jobs:
setup:
runs-on: ubuntu-latest
steps:
- uses: technote-space/auto-cancel-redundant-job@v1.7.5
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3.2.0
with:
node-version: 'lts/*'
- name: Setup Cache
uses: actions/cache@v3.0.2
with:
path: .yarn
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
- name: Install dependencies
run: yarn install --immutable
env:
YARN_CHECKSUM_BEHAVIOR: update
- uses: technote-space/auto-cancel-redundant-job@v1
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: "yarn"
- name: Install dependencies
run: yarn install --immutable
env:
YARN_CHECKSUM_BEHAVIOR: update

###############################################################################
# COMMITLINT #
###############################################################################
###############################################################################
# COMMITLINT #
###############################################################################
commitlint:
needs: setup
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Commit Lint
uses: wagoid/commitlint-github-action@v4.1.12
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Commit Lint
uses: wagoid/commitlint-github-action@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

###############################################################################
# ESLINT #
###############################################################################
eslint:
###############################################################################
# BIOME #
###############################################################################
biome:
needs: setup
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3.2.0
with:
node-version: 'lts/*'
- name: Setup Cache
uses: actions/cache@v3.0.2
with:
path: .yarn
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
- name: Install dependencies
run: yarn install --immutable --immutable-cache
- name: ESLint
run: yarn run eslint
- name: Checkout
uses: actions/checkout@v4
- name: Setup Biome
uses: biomejs/setup-biome@v2
- name: Run Biome
run: biome ci --reporter=github

###############################################################################
# TEST #
###############################################################################
###############################################################################
# TEST #
###############################################################################
test:
needs: setup
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3.2.0
with:
node-version: 'lts/*'
- name: Setup Cache
uses: actions/cache@v3.0.2
with:
path: .yarn
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
- name: Install dependencies
run: yarn install --immutable --immutable-cache
- name: Test
run: yarn run test
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: "yarn"
- name: Install dependencies
run: yarn install --immutable --immutable-cache
- name: Test
run: yarn run test

###############################################################################
# RELEASE #
###############################################################################
###############################################################################
# RELEASE #
###############################################################################
release:
needs: [test, eslint, commitlint]
needs: [test, biome, commitlint]
runs-on: ubuntu-latest
steps:
- name: Get branch
uses: rlespinasse/github-slug-action@4.2.4
- name: Checkout
uses: actions/checkout@v3
if: ${{ env.GITHUB_REF_SLUG == 'master' }}
- name: Setup Node.js
uses: actions/setup-node@v3.2.0
if: ${{ env.GITHUB_REF_SLUG == 'master' }}
with:
node-version: 'lts/*'
- name: Setup Cache
uses: actions/cache@v3.0.2
if: ${{ env.GITHUB_REF_SLUG == 'master' }}
with:
path: .yarn
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
- name: Install dependencies
run: yarn install --immutable --immutable-cache
if: ${{ env.GITHUB_REF_SLUG == 'master' }}
- name: Benchmark
run: yarn run benchmark
if: ${{ env.GITHUB_REF_SLUG == 'master' }}
- name: Release
uses: ridedott/release-me-action@v3.6.39
if: ${{ env.GITHUB_REF_SLUG == 'master' }}
with:
node-module: true
commit-assets: |
./BENCHMARK.md
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}
- name: Get branch
uses: rlespinasse/github-slug-action@v5
- name: Checkout
uses: actions/checkout@v4
if: ${{ env.GITHUB_REF_SLUG == 'master' }}
- name: Setup Node.js
uses: actions/setup-node@v4
if: ${{ env.GITHUB_REF_SLUG == 'master' }}
with:
node-version: "lts/*"
cache: "yarn"
- name: Install dependencies
run: yarn install --immutable --immutable-cache
if: ${{ env.GITHUB_REF_SLUG == 'master' }}
- name: Benchmark
run: yarn run benchmark
if: ${{ env.GITHUB_REF_SLUG == 'master' }}
- name: Release
uses: ridedott/release-me-action@v3
if: ${{ env.GITHUB_REF_SLUG == 'master' }}
with:
node-module: true
commit-assets: |
./BENCHMARK.md
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}
8 changes: 5 additions & 3 deletions .github/workflows/on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3.2.0
uses: actions/setup-node@v4
with:
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable
env:
YARN_CHECKSUM_BEHAVIOR: update
- name: Publish
uses: JS-DevTools/npm-publish@v1
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NODE_AUTH_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -168,3 +168,4 @@ $RECYCLE.BIN/
.serverless
test/__fixtures__/*/plugin
settings.local.json
.build
Loading