From ad2a644bb2966e654460318b8b826590c8186b2e Mon Sep 17 00:00:00 2001 From: Dennis Morello Date: Wed, 2 Jun 2021 13:24:19 +0200 Subject: [PATCH] fix(ci): fixed release pipeline --- .github/workflows/release.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 09ca2df..5f17e0a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,8 +1,10 @@ name: Release on: - push: - branches: - - master + workflow_run: + workflows: ["CI"] + branches: [master] + types: + - completed jobs: release: name: Release @@ -12,14 +14,18 @@ jobs: uses: actions/checkout@v2 with: fetch-depth: 0 + - name: Setup Node.js uses: actions/setup-node@v1 + with: - node-version: 12 + node-version: 14 + - name: Install dependencies - run: npm ci + uses: bahmutov/npm-install@v1 + - name: Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - run: npx semantic-release + run: yarn release