Skip to content

Commit

Permalink
feat: add workflow for semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Jun 16, 2022
1 parent 8e74bbd commit 7af8d78
Show file tree
Hide file tree
Showing 3 changed files with 112 additions and 65 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/--semantic-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: 'Run Semantic Release'

on: workflow_call

jobs:
release:
name: 'Release'
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false

- uses: myparcelnl/actions/yarn-install@v2

- uses: myparcelnl/actions/semantic-release@v2
with:
token: ${{ secrets.GH_REPO_TOKEN || secrets.GITHUB_TOKEN }}
env:
GITHUB_TOKEN: ${{ secrets.GH_REPO_TOKEN || secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
17 changes: 6 additions & 11 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,14 @@ on:

jobs:
release:
name: 'Release'
uses: myparcelnl/actions/.github/workflows/--semantic-release.yml@main
secrets: inherit

update-tags:
name: 'Update tags'
needs: release
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false

- uses: myparcelnl/actions/yarn-install@main

- uses: myparcelnl/actions/semantic-release@main
with:
token: ${{ secrets.GH_REPO_TOKEN }}

- uses: myparcelnl/actions/update-tags@main
with:
minor: true
Expand Down

0 comments on commit 7af8d78

Please sign in to comment.