Skip to content

Commit

Permalink
Merge pull request #1 from diba1013/feature/migrate-eslint
Browse files Browse the repository at this point in the history
feature/migrate-eslint
  • Loading branch information
diba1013 authored Jul 13, 2024
2 parents 81e2626 + a9f19dd commit 21de9ca
Show file tree
Hide file tree
Showing 15 changed files with 14,036 additions and 3,327 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,23 @@ on:
jobs:
build:
runs-on: ubuntu-latest
name: Build

env:
NPM_GITHUB_TOKEN: ${{ secrets.NPM_TOKEN }}

name: "Build"
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: latest
- name: Prepare
run: |
corepack enable
- name: "Setup node"
uses: actions/setup-node@v2
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
node-version-file: .nvmrc
cache: pnpm

- name: Install
Expand Down
20 changes: 12 additions & 8 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,32 @@ jobs:
publish:
runs-on: ubuntu-latest
name: Publish artifact

env:
NPM_GITHUB_TOKEN: ${{ secrets.NPM_TOKEN }}

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: latest
- name: Prepare
run: |
corepack enable
- name: Setup node
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: 20
node-version-file: .nvmrc
cache: pnpm

- name: Install
run: |
pnpm install --frozen-lockfile
- name: Build
run: |
pnpm build
- name: Publish
run: |
pnpm -r publish --no-git-checks
pnpm publish --no-git-checks
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.14.0
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pnpm-lock.yml
pnpm-lock.yaml
3 changes: 0 additions & 3 deletions commitlint.config.cjs

This file was deleted.

1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default { extends: ["@commitlint/config-conventional"] };
3 changes: 0 additions & 3 deletions lint-staged.config.cjs

This file was deleted.

3 changes: 3 additions & 0 deletions lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default {
"*": ["prettier --ignore-unknown --write --cache", "eslint --fix --cache"],
};
Loading

0 comments on commit 21de9ca

Please sign in to comment.