From 56f2c9caa5f08459f768b2620782c15f2aac8ddb Mon Sep 17 00:00:00 2001 From: fengmk2 Date: Sat, 17 Dec 2022 23:05:47 +0800 Subject: [PATCH] fix: Auto releease on github action --- .github/workflows/release.yml | 19 +++++++++++++++++++ package.json | 4 ---- 2 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..c6cc6c8 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,19 @@ +name: Release + +on: + # 合并后自动发布 + push: + branches: [ master ] + + # 手动发布 + workflow_dispatch: {} + +jobs: + release: + name: Node.js + uses: artusjs/github-actions/.github/workflows/node-release.yml@v1 + secrets: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + GIT_TOKEN: ${{ secrets.GIT_TOKEN }} + with: + checkTest: false diff --git a/package.json b/package.json index 88159b1..e326371 100644 --- a/package.json +++ b/package.json @@ -39,9 +39,5 @@ }, "engines": { "node": ">= 8.0.0" - }, - "ci": { - "type": "github", - "version": "8, 10, 12, 14, 16" } }