From c3d043b8f6f10dbc3ca1c89cf661df0a1eb99b0c Mon Sep 17 00:00:00 2001 From: Vben Date: Mon, 22 Feb 2021 23:49:05 +0800 Subject: [PATCH] chore: update ci --- .github/workflows/publish.yml | 17 ++++++++++++----- .github/workflows/release.yml | 6 +++++- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 02604a9..f14d351 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,12 +9,19 @@ jobs: publish-npm: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - name: Checkout + uses: actions/checkout@v2 + + - name: use Node.js 14 + uses: actions/setup-node@v1 with: - node-version: 10 registry-url: https://registry.npmjs.org/ - - run: npm install - - run: npm publish + node-version: 14 + + - name: npm install and publish + run: | + npm install + npm run test + env: NODE_AUTH_TOKEN: ${{secrets.npm_token}} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8aacd68..78d17a1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,6 +12,7 @@ jobs: steps: - name: Checkout code uses: actions/checkout@master + - name: Create Release for Tag id: release_tag uses: yyx990803/release-tag@master @@ -21,4 +22,7 @@ jobs: tag_name: ${{ github.ref }} body: | Please refer to [CHANGELOG.md](https://github.com/anncwb/vite-plugin-theme/blob/main/CHANGELOG.md) for details. - - run: npm run log + - name: npm install and create changeLog + run: | + npm install + npm run log