Skip to content

Commit

Permalink
feat: release
Browse files Browse the repository at this point in the history
  • Loading branch information
murongg committed Nov 14, 2023
1 parent 2f14c68 commit 054cdb1
Show file tree
Hide file tree
Showing 11 changed files with 338 additions and 123 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,35 +56,35 @@ jobs:
- name: Typecheck
run: nr typecheck

test:
runs-on: ${{ matrix.os }}
# test:
# runs-on: ${{ matrix.os }}

strategy:
matrix:
node: [16.x, 18.x]
os: [ubuntu-latest, windows-latest, macos-latest]
fail-fast: false
# strategy:
# matrix:
# node: [16.x, 18.x]
# os: [ubuntu-latest, windows-latest, macos-latest]
# fail-fast: false

steps:
- uses: actions/checkout@v3
# steps:
# - uses: actions/checkout@v3

- name: Install pnpm
uses: pnpm/action-setup@v2
# - name: Install pnpm
# uses: pnpm/action-setup@v2

- name: Set node ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: pnpm
# - name: Set node ${{ matrix.node }}
# uses: actions/setup-node@v3
# with:
# node-version: ${{ matrix.node }}
# cache: pnpm

- name: Setup
run: npm i -g @antfu/ni
# - name: Setup
# run: npm i -g @antfu/ni

- name: Install
run: nci
# - name: Install
# run: nci

- name: Build
run: nr build
# - name: Build
# run: nr build

- name: Test
run: nr test
# - name: Test
# run: nr test
2 changes: 1 addition & 1 deletion build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ export default defineBuildConfig({
clean: true,
rollup: {
emitCJS: true,
resolve: {}
resolve: {},
},
})
15 changes: 10 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,21 @@
"test": "vitest",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"bumpp": "^9.2.0",
"cac": "^6.7.14",
"execa": "^8.0.1",
"fs-extra": "^11.1.1",
"picocolors": "^1.0.0",
"unbuild": "^2.0.0",
"unconfig": "^0.3.11"
},
"devDependencies": {
"@antfu/ni": "^0.21.4",
"@antfu/utils": "^0.7.4",
"@murongg/eslint-config": "^0.2.0",
"@types/fs-extra": "^11.0.4",
"@types/node": "^18.16.16",
"bumpp": "^9.1.0",
"eslint": "^8.41.0",
"esno": "^0.16.3",
"lint-staged": "^13.2.2",
Expand All @@ -70,9 +79,5 @@
},
"lint-staged": {
"*": "eslint --fix"
},
"dependencies": {
"cac": "^6.7.14",
"unbuild": "^2.0.0"
}
}
Loading

0 comments on commit 054cdb1

Please sign in to comment.