mirror of
https://github.com/chenasraf/DefinitelyTyped-tools.git
synced 2026-05-18 01:49:03 +00:00
Use repository dispatch to trigger publisher deployment
This commit is contained in:
8
.github/workflows/deploy.yml
vendored
8
.github/workflows/deploy.yml
vendored
@@ -1,11 +1,15 @@
|
||||
on:
|
||||
issue_comment:
|
||||
types: [created]
|
||||
repository_dispatch:
|
||||
types: [published]
|
||||
jobs:
|
||||
deploy:
|
||||
if: |
|
||||
github.event.issue.number == 1
|
||||
&& github.event.comment.user.login == 'andrewbranch'
|
||||
github.event_name == 'repository_dispatch' ||
|
||||
github.event_name == 'issue_comment'
|
||||
&& github.event.issue.number == 1
|
||||
&& github.actor == 'andrewbranch'
|
||||
&& startsWith(github.event.comment.body, '/deploy publisher')
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
6
.github/workflows/publish.yml
vendored
6
.github/workflows/publish.yml
vendored
@@ -43,3 +43,9 @@ jobs:
|
||||
run: npx lerna publish from-git --yes
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
- name: trigger publisher deploy
|
||||
uses: peter-evens/repository-dispatch@v1.0.0
|
||||
with:
|
||||
token: ${{ secrets.REPO_ACCESS_TOKEN }}
|
||||
event-type: published
|
||||
|
||||
Reference in New Issue
Block a user