Skip to content

Commit

Permalink
fix(pipeline): combine workflow (#27)
Browse files Browse the repository at this point in the history
* fix(pipeline): combine workflow

* fix(pipeline): test workflow

* fix(pipeline): combine semantic release into PR build workflow
  • Loading branch information
ernestman28 committed Jun 4, 2020
1 parent cf7b314 commit 3b8ee0e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 28 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/prbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- master
pull_request:
types: [opened, synchronize, reopened]
name: PR Build
name: Build & Release
jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -49,4 +49,27 @@ jobs:
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

release:
needs: sonarcloud
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
name: Semantic-Release
runs-on: ubuntu-latest
steps:
- run: echo ${{github.ref}}
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install dependencies
run: yarn ci
- name: Semantic Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.npm_token }}
run: npx semantic-release


26 changes: 0 additions & 26 deletions .github/workflows/semantic-release.yml

This file was deleted.

0 comments on commit 3b8ee0e

Please sign in to comment.