Publish npm packages from Action

Summary: Adds an action for publishing packages to npm. Secret was added as part of T80403944.

Reviewed By: nikoant

Differential Revision: D25195740

fbshipit-source-id: 51d43d9f5e84a25a67b637233b2c62a9a1a15063
This commit is contained in:
Pascal Hartig
2020-11-27 09:28:48 -08:00
committed by Facebook GitHub Bot
parent b5e613141e
commit 30628c8139
2 changed files with 36 additions and 1 deletions

View File

@@ -181,10 +181,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Workflow Dispatch
- name: Publish Workflow Dispatch
if: ${{ needs.release.outputs.tag != '' }}
uses: benc-uk/workflow-dispatch@v1.1
with:
workflow: Publish Pods
token: ${{ secrets.PERSONAL_TOKEN }}
ref: ${{ needs.release.outputs.tag }}
- name: Publish NPM
if: ${{ needs.release.outputs.tag != '' }}
uses: benc-uk/workflow-dispatch@v1.1
with:
workflow: Publish NPM
token: ${{ secrets.PERSONAL_TOKEN }}
ref: ${{ needs.release.outputs.tag }}