From 7d7f34c0d2423eec629e484cc651520519d004ef Mon Sep 17 00:00:00 2001 From: JiJi Date: Mon, 22 Aug 2022 11:40:39 +0800 Subject: [PATCH] Update CI --- .github/workflows/npmpublish.yml | 16 ++++++++++++++-- package.json | 2 +- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index a60a571..8ecf76f 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/npmpublish.yml @@ -4,11 +4,23 @@ name: Node.js Package on: - release: - types: [ created ] + push: + tags: + - 'v*' jobs: + + release: + name: Release + runs-on: ubuntu-latest + steps: + - uses: marvinpinto/action-automatic-releases@latest + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + prerelease: false + publish-npm: + name: Publish to NPM runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 diff --git a/package.json b/package.json index 59a7b4a..beb9e0c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hexo-bangumis", - "version": "1.0.1", + "version": "1.0.2", "description": "Hexo 番剧页面插件", "main": "index.js", "scripts": {