From 0b10676c4f7dab61f85bffbe1887d67c12329ff9 Mon Sep 17 00:00:00 2001 From: Yongmin Hong Date: Tue, 18 Jun 2024 19:17:55 +0900 Subject: [PATCH] CI(GitHub Actions): Fix syntax if: statement Summary: Forgot there's contains() logic. Signed-off-by: Yongmin Hong Test Plan: `arc land`, and make a new tag and push. Reviewers: O1 revi & automations, revi Reviewed By: O1 revi & automations, revi Differential Revision: https://issuetracker.revi.xyz/D357 --- .github/workflows/npm-pub.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/npm-pub.yml b/.github/workflows/npm-pub.yml index d17d41f..55d453f 100644 --- a/.github/workflows/npm-pub.yml +++ b/.github/workflows/npm-pub.yml @@ -9,8 +9,9 @@ on: jobs: eslint-config: + name: 'Publish eslint-config to npm' runs-on: ubuntu-latest - if: github.ref_name == 'eslint-config@v*' + if: contains(github.ref_name, 'eslint-config@') steps: - name: 'Checkout' uses: actions/checkout@v4 @@ -29,8 +30,9 @@ jobs: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} prettier-config: + name: 'Publish prettier-config to npm' runs-on: ubuntu-latest - if: github.ref_name == 'prettier-config@v*' + if: contains(github.ref_name, 'prettier-config@') steps: - name: 'Checkout' uses: actions/checkout@v4