Skip to content

Commit

Permalink
Develop (#10)
Browse files Browse the repository at this point in the history
* refactor(refactor): ♻️ cI

* feat(new feature): ✨ upgrade readme

* feat(new feature): ✨ finish sms & ocr modules

* feat(new feature): ✨ finish ocr & sms

* ci(CI&CD): 🎡 cI

* ci(CI&CD): 🎡 ci

* test(Test): ✅ annotate part of the code

* ci(CI&CD): 🎡 test

* ci(CI&CD): 🎡 test

* ci(CI&CD): 🎡 test

* ci(CI&CD): 🎡 ci

* ci(CI&CD): 🎡 cI

* ci(CI&CD): 🎡 cI

* ci(CI&CD): 🎡 test

* ci(CI&CD): 🎡 cI

* ci(CI&CD): 🎡 cI

* ci(CI&CD): 🎡 cI

* ci(CI&CD): 🎡 cI

* ci(CI&CD): 🎡 cI

* ci(CI&CD): 🎡 cI

* feat(CI&CD): ✨ cI

* ci(CI&CD): 🎡 ci

* ci(CI&CD): 🎡 cI

* ci(CI&CD): 🎡 cI

* ci(CI&CD): 🎡 cI

* feat(CI&CD): ✨ cI

* feat(new feature): ✨ cI

* ci(CI&CD): 🎡 cI

* feat(new feature): ✨ add changed

* ci(CI&CD): 🎡 ci

* feat(new feature): ✨ cI

* refactor(refactor): ♻️ remove useless files

* fix(bug fix): 🐛 fix changesets version

* feat(CI&CD): ✨ cI

* feat(refactor): ✨ fix bugs

* fix(bug fix): 🐛 fIx error package scripts

* feat(CI&CD): ✨ cI

* feat(new feature): ✨ update to 1.0.0

* 🎡[CI] Release (#8)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* ci(CI&CD): 🎡 upgrade CI

* ci(CI&CD): 🎡 upgrade CI

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Apr 23, 2024
1 parent 0d73d6a commit 639733f
Show file tree
Hide file tree
Showing 22 changed files with 4,793 additions and 3,519 deletions.
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

0 comments on commit 639733f

Please sign in to comment.