Skip to content

Commit

Permalink
publish on release branch
Browse files Browse the repository at this point in the history
  • Loading branch information
neilboyd committed Aug 9, 2024
1 parent 75d98c0 commit e7bdeea
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,16 @@ jobs:
# with:
# record: false
# # cache-key: node-v${{ matrix.node }}-on-${{ runner.os }}-hash-${{ hashFiles('package-lock.json') }}

- name: Branch Name
run: |
echo ${GITHUB_REF##*/}
echo ${GITHUB_REF}
echo ${GITHUB_BASE_REF##*/}
echo ${GITHUB_BASE_REF}
- name: publish
if: github.ref == 'refs/heads/master'
if: contains(github.ref, 'release')
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
Expand Down

0 comments on commit e7bdeea

Please sign in to comment.