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 d2bb7ca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,12 @@ 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##*/})"

- 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 d2bb7ca

Please sign in to comment.