mirror of
https://github.com/logos-messaging/logos-messaging-js.git
synced 2026-06-06 03:49:29 +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:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- run: echo "$GITHUB_CONTEXT"
|
- if: ${{ github.ref == 'refs/heads/master' || github.head_ref == 'release-please--branches--master' }}
|
||||||
|
run: npm i
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
- if: ${{ github.ref != 'refs/heads/master' && github.head_ref != 'release-please--branches--master' }}
|
||||||
GITHUB_CONTEXT: ${{ toJson(github) }}
|
uses: bahmutov/npm-install@v1
|
||||||
- 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) }}
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user