From e9e5a3b0ccd7f6eee6b363254fe72d71c4ea63d4 Mon Sep 17 00:00:00 2001 From: Andrew Gable Date: Thu, 10 Oct 2024 11:21:50 -0600 Subject: [PATCH] Update syntax --- .github/workflows/publish.yml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) 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 }}