From 6de996b32d6b797601bbaaf1a0f40faa2a963b6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AE=80=E9=9D=99=E5=87=A1?= <30424139+wtto00@users.noreply.github.com> Date: Sun, 24 Sep 2023 14:39:53 +0800 Subject: [PATCH] chore: ci --- .github/workflows/test-publish.yml | 6 ++++++ README-ZH_CN.md | 2 +- README.md | 2 +- package.json | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-publish.yml b/.github/workflows/test-publish.yml index 6931bef..0d275e3 100644 --- a/.github/workflows/test-publish.yml +++ b/.github/workflows/test-publish.yml @@ -96,6 +96,9 @@ jobs: - name: Install Dependencies run: pnpm install --no-frozen-lockfile + - name: Build + run: pnpm build + - run: npm pkg set publishConfig.registry=https://npm.pkg.github.com - run: npm publish env: @@ -128,6 +131,9 @@ jobs: - name: Install Dependencies run: pnpm install --no-frozen-lockfile + - name: Build + run: pnpm build + - run: git config --global user.name "GitHub CD bot" - run: git config --global user.email "github-cd-bot@example.com" - run: npm publish --access public diff --git a/README-ZH_CN.md b/README-ZH_CN.md index a92e168..549141d 100644 --- a/README-ZH_CN.md +++ b/README-ZH_CN.md @@ -1,6 +1,6 @@ # android-tools -[![Test](https://github.com/wtto00/android-tools/actions/workflows/test.yml/badge.svg)](https://github.com/wtto00/android-tools/actions/workflows/test.yml) +[![Test](https://github.com/wtto00/android-tools/actions/workflows/test-publish.yml/badge.svg)](https://github.com/wtto00/android-tools/actions/workflows/test-publish.yml) 使用 Nodejs 控制管理 Andorid 设备。 diff --git a/README.md b/README.md index 1be71c5..ac028e4 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # android-tools -[![Test](https://github.com/wtto00/android-tools/actions/workflows/test.yml/badge.svg)](https://github.com/wtto00/android-tools/actions/workflows/test.yml) +[![Test](https://github.com/wtto00/android-tools/actions/workflows/test-publish.yml/badge.svg)](https://github.com/wtto00/android-tools/actions/workflows/test-publish.yml) Node module for managing and controlling the Android Devices. diff --git a/package.json b/package.json index 7b5f2eb..bd2682a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@wtto00/android-tools", - "version": "1.0.0", + "version": "1.0.1", "description": "Node module for managing and controlling the Android Devices.", "type": "module", "main": "dist/lib/index.js",