Skip to content

Commit

Permalink
fix(publish): allow publishing through repository dispatch
Browse files Browse the repository at this point in the history
curl -X POST https://api.github.com/repos/roerohan/react-vnc/dispatches \
        -H "accept: application/vnd.github.v3+json" \
        -H "Authorization: token TOKEN" \
        -d '{"event_type": "prod-release"}'
  • Loading branch information
roerohan authored Nov 8, 2021
1 parent 574b631 commit 5dbd528
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on:
push:
branches:
- main
repository_dispatch:
types: [prod-release]
jobs:
release:
name: Release
Expand All @@ -29,4 +31,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
run: npx semantic-release
run: npx semantic-release

0 comments on commit 5dbd528

Please sign in to comment.