Skip to content

Commit

Permalink
make publish workflow react on release type "released"
Browse files Browse the repository at this point in the history
  • Loading branch information
rlindner81 committed Jun 27, 2023
1 parent 61eb988 commit 5291d22
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/ci-dev.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
# This workflow will protect the main branch by testing and linting new PRs and commits

name: CI Dev

# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#push
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request
on:
push:
branches:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci-main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
# This workflow will protect the main branch by testing and linting new PRs and commits

name: CI Main

# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#push
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request
on:
push:
branches:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
# This workflow will publish any new release to the npmjs registry

name: Publish

# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#release
on:
release:
types: [created]
types: [released]

jobs:
publish:
Expand Down

0 comments on commit 5291d22

Please sign in to comment.