Skip to content

Commit

Permalink
Try new actions approach
Browse files Browse the repository at this point in the history
  • Loading branch information
aarong committed Feb 9, 2024
1 parent 56e8b31 commit 925c62f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 31 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/built-test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,15 @@ jobs:
- run: npm run coverage
- name: Coveralls
uses: coverallsapp/github-action@v2

# Publish takes place only if new version tag

deploy:
# Wait for tests to complete
needs: tests
# Only publish if tagged v*
if: startsWith(github.event.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- uses: JS-DevTools/npm-publish@v3
with:
package: build # Path
token: ${{ secrets.NPM_TOKEN }}

10 changes: 0 additions & 10 deletions .github/workflows/on-push.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/test.yml

This file was deleted.

0 comments on commit 925c62f

Please sign in to comment.