Skip to content

Commit

Permalink
ci: Update GitHub workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ardalanamini committed Jun 19, 2021
1 parent 8acd3cf commit 7ab5066
Showing 1 changed file with 25 additions and 9 deletions.
34 changes: 25 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Create Release
name: Release

on:
push:
Expand All @@ -7,7 +7,7 @@ on:

jobs:
build:
name: Create Release
name: Test

runs-on: ubuntu-latest

Expand Down Expand Up @@ -40,27 +40,39 @@ jobs:
env_vars: RELEASE
fail_ci_if_error: true

release:
name: Create Release

runs-on: ubuntu-latest

needs:
- build

steps:
- uses: actions/checkout@v2

- name: Changelog
id: changelog
uses: ardalanamini/auto-changelog@v1.1.0
uses: ardalanamini/auto-changelog@v1.2.0
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Create Release
id: create_release
uses: actions/create-release@v1
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body: |
${{ steps.changelog.outputs.changelog }}
publish-npm:
name: Publish to NPM
needs: build

runs-on: ubuntu-latest

needs:
- release

steps:
- uses: actions/checkout@v2

Expand All @@ -83,8 +95,12 @@ jobs:

publish-gpr:
name: Publish to Github
needs: build

runs-on: ubuntu-latest

needs:
- release

steps:
- uses: actions/checkout@v2

Expand Down

0 comments on commit 7ab5066

Please sign in to comment.