Skip to content

Commit

Permalink
ci: run release workflow on workflow_dispatch event (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
lytovka committed Apr 12, 2023
1 parent 8ba7f90 commit edd9d20
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ name: Pull Request
on: pull_request
jobs:
build:
runs-on: ubuntu-latest
concurrency:
group: ${{ matrix.node }}-${{ github.head_ref }}
cancel-in-progress: true

strategy:
matrix:
node: [16, 18, 19]
runs-on: ubuntu-latest
steps:
- name: Cancel previous runs
uses: styfle/cancel-workflow-action@0.11.0
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup node
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
name: Release to npm registry
on:
push:
branches:
- main
on: workflow_dispatch

jobs:
release:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-release
cancel-in-progress: true
steps:
- name: Cancel previous runs
uses: styfle/cancel-workflow-action@0.11.0
- name: Checkout repo
uses: actions/checkout@v3
with:
Expand Down

0 comments on commit edd9d20

Please sign in to comment.