Skip to content

Commit

Permalink
Deploy only on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
aarong committed Feb 12, 2024
1 parent 13295c4 commit 4323d7e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/built-test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,25 @@ on:
- push
- workflow_dispatch # Permit manual initiation
jobs:
tests:
build-test-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 'latest'

- run: npm ci
- run: npm run build

- run: npm run test-build-browsers

- run: npm run coverage
- name: Coveralls
uses: coverallsapp/github-action@v2

# Publish takes place only if new version tag
- uses: JS-DevTools/npm-publish@v3
- uses: coverallsapp/github-action@v2

# Publish if tagged v*
- uses: JS-DevTools/npm-publish@v3
if: startsWith(github.event.ref, 'refs/tags/v')
with:
package: build # Path
token: ${{ secrets.NPM_TOKEN }}

token: ${{ secrets.NPM_TOKEN }}

0 comments on commit 4323d7e

Please sign in to comment.