diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3cc0fc6..41230e1 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,9 +10,10 @@ on: concurrency: ${{ github.workflow }} jobs: - version: + get_pull_request: runs-on: ubuntu-latest - + outputs: + pull_request_number: ${{ steps.getMergedPullRequest.outputs.pull_request_number }} steps: - uses: actions/checkout@v3 with: @@ -24,10 +25,12 @@ jobs: with: github_token: ${{ github.token }} - - uses: Expensify/GitHub-Actions/.github/workflows/npmPublish.yml@main - with: - repository: ${{ github.action_repository }} - pull_request_number: ${{ steps.getMergedPullRequest.outputs.pull_request_number }} - secrets: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - OS_BOTIFY_COMMIT_TOKEN: ${{ secrets.OS_BOTIFY_COMMIT_TOKEN }} + publish: + needs: get_pull_request + uses: Expensify/GitHub-Actions/.github/workflows/npmPublish.yml@main + with: + repository: ${{ github.action_repository }} + pull_request_number: ${{ needs.get_pull_request.outputs.pull_request_number }} + secrets: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + OS_BOTIFY_COMMIT_TOKEN: ${{ secrets.OS_BOTIFY_COMMIT_TOKEN }}