diff --git a/.github/actions/npm/action.yml b/.github/actions/npm/action.yml index 411bc0e5b0..f2c033d79b 100644 --- a/.github/actions/npm/action.yml +++ b/.github/actions/npm/action.yml @@ -3,12 +3,8 @@ name: npm i runs: using: "composite" steps: - - run: echo "$GITHUB_CONTEXT" + - if: ${{ github.ref == 'refs/heads/master' || github.head_ref == 'release-please--branches--master' }} + run: npm i shell: bash - env: - GITHUB_CONTEXT: ${{ toJson(github) }} - - run: npm i - shell: bash - if: ${{ contains('refs/heads/master refs/heads/release-please--branches--master', github.ref) }} - - uses: bahmutov/npm-install@v1 - if: ${{ !contains('refs/heads/master refs/heads/release-please--branches--master', github.ref) }} + - if: ${{ github.ref != 'refs/heads/master' && github.head_ref != 'release-please--branches--master' }} + uses: bahmutov/npm-install@v1