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 a8e1a25
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,28 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- name: install
run: |
npm install
run: npm install

- name: test
run: |
npm t
run: npm t

# - name: start server for uat
# run: |
# npx http-server example/_site -p 4000
# npx http-server example/_site -p 4000

# - name: uat
# uses: cypress-io/github-action@v2
# 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, 'refs/tags/')
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
Expand Down

0 comments on commit a8e1a25

Please sign in to comment.