From 5cf25193e46d98e60c3aec88b7cb04a2f1b0f703 Mon Sep 17 00:00:00 2001 From: visiky Date: Fri, 19 Nov 2021 13:37:13 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B5=8B=E8=AF=95=E6=B7=BB=E5=8A=A0=20?= =?UTF-8?q?action=20=E8=A7=A6=E5=8F=91=20release?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..0bd2fed8 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,23 @@ +name: Publish a release + +on: workflow_dispatch + +jobs: + build: + runs-on: ubuntu-latest # change to macOS-latest if need to run ci/test + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + with: + node-version: 12 + - run: yarn install + - run: npm run lint + - run: npm run build + + release-it: + needs: build + runs-on: ubuntu-latest + steps: + - run: npm run release + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}