Skip to content

Commit 592a306

Browse files
committed
feat: restart @ice/spec and update version to v2
1 parent 9865b97 commit 592a306

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+9806
-850
lines changed

.eslintignore

Lines changed: 0 additions & 7 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/auto-publisher.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,18 @@ jobs:
99
build-and-publish:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v1
13-
- uses: actions/setup-node@v1
12+
- uses: actions/checkout@v3
13+
- name: Install pnpm
14+
uses: pnpm/action-setup@v2
15+
- uses: actions/setup-node@v4
1416
with:
15-
node-version: 10
17+
node-version: 18
18+
cache: 'pnpm'
1619
registry-url: https://registry.npmjs.org/
1720
- run: |
18-
npm i
19-
npm run setup
20-
npm run publish
21+
pnpm i
22+
pnpm run build
23+
pnpm release
2124
env:
2225
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
2326
REGISTRY: https://registry.npmjs.org

.github/workflows/beta-publisher.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Beta Publisher
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
tag:
7+
description: 'Tag'
8+
required: true
9+
options:
10+
- rc
11+
- beta
12+
- alpha
13+
14+
jobs:
15+
build-and-publish:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Install pnpm
20+
uses: pnpm/action-setup@v2
21+
- uses: actions/setup-node@v4
22+
with:
23+
node-version: 18
24+
cache: 'pnpm'
25+
registry-url: https://registry.npmjs.org/
26+
- name: Build and Run
27+
run: |
28+
pnpm i
29+
pnpm run build
30+
pnpm publish --tag ${{inputs.tag}} -r --no-git-checks
31+
env:
32+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
33+
REGISTRY: https://registry.npmjs.org

.github/workflows/ci.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,13 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v1
14+
- name: Install pnpm
15+
uses: pnpm/action-setup@v2
1416
- uses: actions/setup-node@v1
1517
with:
16-
node-version: 10
18+
node-version: 18
1719
registry-url: https://registry.npmjs.org/
18-
- run: npm i
19-
- run: npm run ci
20-
20+
- run: pnpm i
21+
- run: pnpm build
22+
- run: pnpm run lint
23+
- run: pnpm run test

.github/workflows/pr.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Pull Request Check
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
publish-pkg:
8+
if: false # Temp disable
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Install pnpm
13+
uses: pnpm/action-setup@v2
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: 18
17+
cache: 'pnpm'
18+
- name: Setup
19+
run: |
20+
pnpm i
21+
pnpm run build
22+
- name: pkg.new
23+
run: pnpx pkg-pr-new publish './packages/*'

.gitignore

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,17 @@ es/
88
lib/
99
dist/
1010
build/
11+
esm/
12+
es2017/
1113
coverage/
1214
node_modules/
1315
examples/test
1416
.idea/
1517
.history/
16-
packages/**/lib/
17-
packages/**/dist/
18-
packages/**/build/
19-
packages/**/coverage/
20-
packages/**/node_modules/
18+
packages/*/lib/
19+
packages/*/dist/
20+
packages/*/build/
21+
packages/*/coverage/
2122

2223
package-lock.json
23-
yarn.lock
24+
yarn.lock

.husky/commit-msg

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
32

4-
npx --no-install commitlint --edit "$1"
3+
#npx --no-install commitlint --edit "$1"

.husky/pre-commit

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
4-
npm run lint && npm run test
2+
lint-staged

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
registry=https://registry.npmjs.org/

0 commit comments

Comments
 (0)