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

Pull Request form Actions By refs/heads/develop #27

Merged
merged 15 commits into from
Apr 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"commit": false,
"access": "public",
"updateInternalDependencies": "patch",
"baseBranch": "main",
"baseBranch": "develop",
"registry": "https://registry.npmjs.org",
"scope": "@cardbrother",
"ignore": []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"@cardbrother/nestjs-tencent-cloud-sdk": patch
---

add cos provider
fix some problem for cos options
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"@cardbrother/nestjs-tencent-cloud-sdk": patch
---

upgrade ci
update action
16 changes: 8 additions & 8 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: 🚀 Release

on:
pull_request:
push:
branches:
- main
workflow_dispatch:

concurrency: ${{ github.workflow }}-${{ github.ref }}

Expand All @@ -24,20 +23,20 @@ jobs:
steps:
- name: ⬇️ Checkout
id: checkout
uses: actions/checkout@v2.3.3
uses: actions/checkout@v3
with:
token: ${{ env.GITHUB_TOKEN }}
fetch-depth: 0

- name: 🟢 Setup node
id: setup-node
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: 🥡 Setup pnpm
id: setup-pnpm
uses: pnpm/action-setup@v2.1.0
uses: pnpm/action-setup@v3
with:
version: ${{ matrix.pnpm-version }}
run_install: false
Expand All @@ -48,7 +47,7 @@ jobs:
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"

- name: 🔆 Cache pnpm modules
uses: actions/cache@v3
uses: actions/cache@v4
id: pnpm-cache
with:
path: ${{ steps.get-pnpm-cache-dir.outputs.pnpm_cache_dir }}
Expand All @@ -64,13 +63,14 @@ jobs:
id: build-the-mono-repo
run: |
pnpm build

- name: 📣 Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
title: "chore(release): version packages 🦋"
publish: pnpm publish:packages
version: pnpm version:packages
publish: pnpm publish
version: pnpm version
commit: "chore(release): version packages 🦋 [skip ci]"
env:
GITHUB_TOKEN: ${{ env.GITHUB_TOKEN }}
Expand Down
28 changes: 4 additions & 24 deletions .github/workflows/Test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,32 +15,9 @@ defaults:
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
Expand Down Expand Up @@ -69,5 +46,8 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
base: main
title: "Pull Request form Actions By ${{ github.ref }}"
body: "This is a pull request created by Actions"
commit-message: "Pull Request main into ${{ github.ref }}"
labels: "CI"
assignees: "guozichun"
assignees: "guotingchao"
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @cardbrother/nestjs-tencent-cloud-sdk

## 1.0.1

### Patch Changes

- update preset

## 1.0.0

### Major Changes
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cardbrother/nestjs-tencent-cloud-sdk",
"version": "1.0.0",
"version": "1.0.1",
"main": "dist/index.js",
"types": "dist/types/index.d.ts",
"description": "nestjs tencent cloud sdk",
Expand All @@ -15,8 +15,8 @@
"scripts": {
"build": "nest build",
"changeset": "changeset",
"publish": "changeset publish",
"version": "changeset version",
"publish:release": "changeset publish",
"publish:version": "changeset version",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"test": "jest",
Expand Down Expand Up @@ -46,6 +46,7 @@
"tencentcloud-sdk-nodejs": "^4.0.837"
},
"devDependencies": {
"@changesets/action": "github:changesets/action",
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.1",
"@nestjs/cli": "^10.3.2",
Expand Down
Loading