mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-02 13:53:12 +00:00
fix: npm action branch detection (#2308)
This commit is contained in:
parent
edfb56243d
commit
044da751bd
12
.github/actions/npm/action.yml
vendored
12
.github/actions/npm/action.yml
vendored
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user