From cd7bdd146108a49c303f91c9242d0a95eb357be4 Mon Sep 17 00:00:00 2001 From: Hiroyuki Okada Date: Sat, 20 Jan 2024 11:28:22 +0900 Subject: [PATCH] ci: update npm publish (#68) --- .github/workflows/build-android.yml | 2 +- .github/workflows/npm-publish.yml | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-android.yml b/.github/workflows/build-android.yml index d5daeb4d..141bc1f5 100644 --- a/.github/workflows/build-android.yml +++ b/.github/workflows/build-android.yml @@ -2,7 +2,7 @@ name: Build Android Project on: pull_request: push: - branches: main + branches: [main] jobs: build: diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 269c1665..8db0e3d7 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -2,15 +2,14 @@ name: npm publish on: workflow_run: - workflows: - - Build Android Project - branches: main - types: - - "completed" + workflows: [Build Android Project] + branches: [main] + types: [completed] jobs: publish: runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.conclusion == 'success' }} steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4