From 88cf9c9c33489baa394463051c80bfe84fbd9759 Mon Sep 17 00:00:00 2001 From: kyoncy Date: Sun, 25 Oct 2020 12:26:21 +0900 Subject: [PATCH] fix npm publish workflow --- .github/workflows/create-release.yml | 22 ---------------------- .github/workflows/npm-publish.yml | 19 +++++++++++++++++-- 2 files changed, 17 insertions(+), 24 deletions(-) delete mode 100644 .github/workflows/create-release.yml diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml deleted file mode 100644 index 655d551..0000000 --- a/.github/workflows/create-release.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: create-release - -on: - push: - tags: - - 'v*' - -jobs: - create-release: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - draft: false - prerelease: false diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index e700ff5..38b75b5 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -1,10 +1,25 @@ name: npm-publish on: - release: - types: [created] + push: + tags: + - 'v*' jobs: + create-release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + draft: false + prerelease: false npm-publish: runs-on: ubuntu-latest steps: