Skip to content

Commit

Permalink
Merge pull request #6 from neilboyd/trigger-on-release
Browse files Browse the repository at this point in the history
publish on release
  • Loading branch information
neilboyd authored Aug 12, 2024
2 parents 75d98c0 + 6c327aa commit 0823631
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 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
# run: 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') }}

# TODO delete this step in the next release
- 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 0823631

Please sign in to comment.