Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
Update js-api-build.yml (#1358)
Browse files Browse the repository at this point in the history
  • Loading branch information
eromano authored Mar 26, 2022
1 parent 445a369 commit c158ba2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/js-api-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
- cron: '0 3 * * *' # nightly
env:
GITHUB_REPO_SLUG: ${{ github.repository }}
GITHUB_BRANCH: ${{ github.head_ref }}
GITHUB_BRANCH: ${{ github.ref }}
GITHUB_PULL_REQUEST: ${{ github.event.number }}
GITHUB_BUILD_NUMBER: ${{ github.run_number }}
NPM_REGISTRY_TOKEN: ${{ github.NPM_REGISTRY_TOKEN }}
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
needs: test
name: release
runs-on: ubuntu-latest
if: github.head_ref == 'refs/heads/master' || github.head_ref == 'refs/heads/develop' || github.event.schedule == '0 3 * * *'
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop' || github.event.schedule == '0 3 * * *'
steps:
- name: Checkout
uses: actions/[email protected]
Expand All @@ -97,14 +97,14 @@ jobs:
- run: npm ci

- name: Release
if: github.head_ref == 'refs/heads/master' || github.head_ref == 'refs/heads/develop'
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop'
shell: bash
run: |
./scripts/build.sh || exit 1
./scripts/publish.sh
- name: Release Tag
if: github.head_ref == 'refs/heads/master'
if: github.ref == 'refs/heads/master'
shell: bash
run: |
./scripts/git-tag.sh
Expand All @@ -116,6 +116,6 @@ jobs:

- name: Trigger ADF master
shell: bash
if: github.head_ref == 'refs/heads/master'
if: github.ref == 'refs/heads/master'
run: ./scripts/update-project.sh -p ${{ github.run_number }} -t ${{ secrets.GITHUB_TOKEN }} -v latest

0 comments on commit c158ba2

Please sign in to comment.