Skip to content

Commit

Permalink
Merge pull request #102 from fatcherjs/development
Browse files Browse the repository at this point in the history
release: v1.0.0
  • Loading branch information
fanhaoyuan authored Apr 13, 2022
2 parents ae0fc4e + 58a7963 commit d8495f0
Show file tree
Hide file tree
Showing 171 changed files with 2,311 additions and 9,544 deletions.
6 changes: 6 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": ["@fansy/eslint-config"],
"parserOptions": {
"sourceType": "module"
}
}
6 changes: 0 additions & 6 deletions .eslintrc.js

This file was deleted.

60 changes: 30 additions & 30 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,72 +11,72 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/checkout@v2

- uses: pnpm/[email protected]
with:
version: 6.20.3

- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node_version }}
cache: 'pnpm'

- name: Install dependencies
run: pnpm install
- run: pnpm install

- name: Build bundle
run: pnpm run -r build --if-present
- run: pnpm run build

eslint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/checkout@v2

- uses: pnpm/[email protected]
with:
version: 6.20.3

- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node_version }}
cache: 'pnpm'

- name: Install dependencies
run: pnpm install
- run: pnpm install

- name: eslint
run: pnpm exec eslint ./packages
- run: pnpm exec eslint ./src

typings:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: pnpm/[email protected]
with:
version: 6.20.3

- uses: actions/setup-node@v2
with:
cache: 'pnpm'

- run: pnpm install

- run: tsc --noEmit

test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/checkout@v2

- uses: pnpm/[email protected]
with:
version: 6.20.3

- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node_version }}
cache: 'pnpm'

- name: Install dependencies
run: pnpm install
- run: pnpm install

- name: Test with coverage
run: pnpm -r run test:coverage --if-present
- run: pnpm run test:cov

- name: Code coverage
uses: codecov/codecov-action@v2
- uses: codecov/codecov-action@v2
with:
token: ${{secrets.CODECOV_TOKEN}}
fail_ci_if_error: true
verbose: true
70 changes: 0 additions & 70 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

42 changes: 0 additions & 42 deletions .github/workflows/docs-deploy.yml

This file was deleted.

27 changes: 8 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Fatcher Release
name: Release

on:
push:
Expand All @@ -9,8 +9,7 @@ jobs:
tag-release:
runs-on: ubuntu-latest
steps:
- name: Create GitHub Release By Push Tag
uses: Roang-zero1/github-create-release-action@master
- uses: Roang-zero1/github-create-release-action@master
with:
version_regex: ^v[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+
env:
Expand All @@ -19,32 +18,22 @@ jobs:
npm-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/checkout@v2

- uses: pnpm/[email protected]
with:
version: 6.20.3

- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node_version }}
cache: 'pnpm'

- name: Install dependencies
run: pnpm install
- run: pnpm install

- name: Enter Workspace
run: cd packages/fatcher
- run: pnpm build

- name: Build bundle
run: pnpm build
- run: echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc

- name: Set .npmrc file
run: echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc

- name: NPM publish
run: pnpm publish
- run: npm publish
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"@fansy/prettier-config"
1 change: 0 additions & 1 deletion .prettierrc.js

This file was deleted.

25 changes: 0 additions & 25 deletions .umirc.ts

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 Fansy
Copyright (c) 2022 fatcherjs

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading

0 comments on commit d8495f0

Please sign in to comment.