Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #10

Merged
merged 44 commits into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
d662eda
refactor(refactor): :recycle: cI
guotingchao Apr 15, 2024
214208f
feat(new feature): :sparkles: upgrade readme
guotingchao Apr 16, 2024
fd33e00
feat(new feature): :sparkles: finish sms & ocr modules
guotingchao Apr 19, 2024
c15ebc4
feat(new feature): :sparkles: finish ocr & sms
guotingchao Apr 21, 2024
297f6e4
Merge branch 'feature/rc-module-export' into develop
guotingchao Apr 21, 2024
aa6a9bc
ci(CI&CD): :ferris_wheel: cI
guotingchao Apr 21, 2024
1ccba22
ci(CI&CD): :ferris_wheel: ci
guotingchao Apr 21, 2024
eaed4b0
test(Test): :white_check_mark: annotate part of the code
guotingchao Apr 21, 2024
3d99835
ci(CI&CD): :ferris_wheel: test
guotingchao Apr 21, 2024
7592049
ci(CI&CD): :ferris_wheel: test
guotingchao Apr 21, 2024
956bb0e
ci(CI&CD): :ferris_wheel: test
guotingchao Apr 22, 2024
fde4e26
ci(CI&CD): :ferris_wheel: ci
guotingchao Apr 22, 2024
520ed33
ci(CI&CD): :ferris_wheel: cI
guotingchao Apr 22, 2024
0201fcc
ci(CI&CD): :ferris_wheel: cI
guotingchao Apr 22, 2024
15a33d7
ci(CI&CD): :ferris_wheel: test
guotingchao Apr 22, 2024
85b6579
ci(CI&CD): :ferris_wheel: cI
guotingchao Apr 22, 2024
01ca47d
ci(CI&CD): :ferris_wheel: cI
guotingchao Apr 22, 2024
7fabfc8
ci(CI&CD): :ferris_wheel: cI
guotingchao Apr 22, 2024
ffe637c
ci(CI&CD): :ferris_wheel: cI
guotingchao Apr 22, 2024
763b65a
ci(CI&CD): :ferris_wheel: cI
guotingchao Apr 22, 2024
3a29d4e
ci(CI&CD): :ferris_wheel: cI
guotingchao Apr 22, 2024
c0d693c
feat(CI&CD): :sparkles: cI
guotingchao Apr 22, 2024
80a055e
ci(CI&CD): :ferris_wheel: ci
guotingchao Apr 22, 2024
76c89d7
ci(CI&CD): :ferris_wheel: cI
guotingchao Apr 22, 2024
9e31549
ci(CI&CD): :ferris_wheel: cI
guotingchao Apr 22, 2024
c34bbb9
ci(CI&CD): :ferris_wheel: cI
guotingchao Apr 22, 2024
aa054c5
feat(CI&CD): :sparkles: cI
guotingchao Apr 22, 2024
1fb4f71
feat(new feature): :sparkles: cI
guotingchao Apr 22, 2024
e876f45
ci(CI&CD): :ferris_wheel: cI
guotingchao Apr 22, 2024
c6e1ba5
feat(new feature): :sparkles: add changed
guotingchao Apr 22, 2024
d71f81b
ci(CI&CD): :ferris_wheel: ci
guotingchao Apr 22, 2024
ce0b588
feat(new feature): :sparkles: cI
guotingchao Apr 22, 2024
b18094c
refactor(refactor): :recycle: remove useless files
guotingchao Apr 22, 2024
a1485a4
fix(bug fix): :bug: fix changesets version
guotingchao Apr 22, 2024
80dd94f
feat(CI&CD): :sparkles: cI
guotingchao Apr 22, 2024
a4888ad
feat(refactor): :sparkles: fix bugs
guotingchao Apr 22, 2024
16664c8
fix(bug fix): :bug: fIx error package scripts
guotingchao Apr 22, 2024
3ea8ce8
feat(CI&CD): :sparkles: cI
guotingchao Apr 23, 2024
4b68f30
Merge branch 'release/0.2.3' into develop
guotingchao Apr 23, 2024
845fd53
feat(new feature): :sparkles: update to 1.0.0
guotingchao Apr 23, 2024
2f44f7d
🎡[CI] Release (#8)
github-actions[bot] Apr 23, 2024
7936195
ci(CI&CD): :ferris_wheel: upgrade CI
guotingchao Apr 23, 2024
d021a9d
ci(CI&CD): :ferris_wheel: upgrade CI
guotingchao Apr 23, 2024
03d5818
feat(new feature): :sparkles: cI
guotingchao Apr 23, 2024
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
5 changes: 5 additions & 0 deletions .changeset/flat-beers-run.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@cardbrother/nestjs-tencent-cloud-sdk": patch
---

upgrade ci
22 changes: 21 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,16 @@ module.exports = {
tsconfigRootDir: __dirname,
sourceType: 'module',
},
plugins: ['@typescript-eslint/eslint-plugin'],
plugins: [
'@typescript-eslint/eslint-plugin',
'import',
'simple-import-sort',
'unused-imports',
],
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'prettier',
],
root: true,
env: {
Expand All @@ -21,5 +27,19 @@ module.exports = {
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
'no-unused-vars': 'off',
'unused-imports/no-unused-imports': 'error',
'unused-imports/no-unused-vars': [
'error',
{
vars: 'all',
varsIgnorePattern: '^_',
args: 'after-used',
argsIgnorePattern: '^_',
},
],
'@typescript-eslint/no-unused-vars': 'off',
},
};
169 changes: 0 additions & 169 deletions .github/workflows/CI.yml

This file was deleted.

86 changes: 86 additions & 0 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
name: Release & Publish
on:
push:
branches:
- main
defaults:
run:
shell: bash

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup PNPM
uses: pnpm/action-setup@v3
with:
version: 8
run_install: false

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

- name: Install Nest CLI
run: pnpm install -g @nestjs/cli

- name: Install dependencies
run: pnpm install

- name: Build Packages
run: pnpm run build

- name: Upload a Build Artifact
uses: actions/[email protected]
with:
name: dist
path: ./dist

release:
name: Release & Publish
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup PNPM
uses: pnpm/action-setup@v3
with:
version: 8
run_install: false

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

- name: Install Nest CLI
run: pnpm install -g @nestjs/cli

- name: Install dependencies
run: pnpm install

- name: Download a Build Artifact
uses: actions/[email protected]
with:
name: dist
path: ./dist

- name: Create Release Pull Request or Publish
uses: changesets/action@v1
with:
version: pnpm run release:version
publish: pnpm run release:publish
commit: "🎡[CI] Release"
title: "🎡[CI] Release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
64 changes: 64 additions & 0 deletions .github/workflows/Test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Test
on:
push:
branches:
- "**"
- "!main"
- "!master"
pull_request:
branches:
- "**"
- "!main"
- "!master"
defaults:
run:
shell: bash

jobs:
prepare:
name: Prepare
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup PNPM
uses: pnpm/action-setup@v3
with:
version: 8
run_install: false

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

- name: Install dependencies
run: pnpm install

test:
name: Test
runs-on: ubuntu-latest
needs: prepare
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup PNPM
uses: pnpm/action-setup@v3
with:
version: 8
run_install: false

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- name: Test
run: pnpm run test
22 changes: 6 additions & 16 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,16 @@
# @cardbrother/nestjs-tencent-cloud-sdk

## 0.2.4
## 1.0.0

### Patch Changes

- [`c532e42`](https://github.com/guotingchao/nest-tencent-cloud-sdk/commit/c532e42664acbcb711ebe2486f2cfc826f3cfff7) Thanks [@guotingchao](https://github.com/guotingchao)! - update workflows

- [`0c26635`](https://github.com/guotingchao/nest-tencent-cloud-sdk/commit/0c26635c6603244195dd72f843dcadb717f943d6) Thanks [@guotingchao](https://github.com/guotingchao)! - upgrade ci & jest

- [`adf5f6b`](https://github.com/guotingchao/nest-tencent-cloud-sdk/commit/adf5f6b15d03e5f6d84ceaeb8bb571b43953e803) Thanks [@guotingchao](https://github.com/guotingchao)! - update workflow
### Major Changes

- [`b29db5a`](https://github.com/guotingchao/nest-tencent-cloud-sdk/commit/b29db5a3336a44b756e062450313c7eaa553f99f) Thanks [@guotingchao](https://github.com/guotingchao)! - update ci

- [`800174c`](https://github.com/guotingchao/nest-tencent-cloud-sdk/commit/800174cb9116e04685ea189e0f7d9ed04c452361) Thanks [@guotingchao](https://github.com/guotingchao)! - fix some bug

- [`a949fda`](https://github.com/guotingchao/nest-tencent-cloud-sdk/commit/a949fda05533de446d3ad9a77da4cb1265137bb2) Thanks [@guotingchao](https://github.com/guotingchao)! - upgrade

## 0.2.3
- [`845fd53`](https://github.com/guotingchao/nest-tencent-cloud-sdk/commit/845fd5351874ae4a5a15e7fc53371fe46d91f4ec) Thanks [@guotingchao](https://github.com/guotingchao)! - stable

### Patch Changes

- fix some yml bug
- [`a4888ad`](https://github.com/guotingchao/nest-tencent-cloud-sdk/commit/a4888ad097de81f2b9b6ee59dc7eb171a5aa7b1a) Thanks [@guotingchao](https://github.com/guotingchao)! - 0.2.4

- [`80dd94f`](https://github.com/guotingchao/nest-tencent-cloud-sdk/commit/80dd94f93b8c87819b5d93f9f3cc8889c3103c11) Thanks [@guotingchao](https://github.com/guotingchao)! - 升级版本

## 0.2.2

Expand Down
Loading