Skip to content

Commit

Permalink
chore: fix test and publish workflow #1
Browse files Browse the repository at this point in the history
  • Loading branch information
rmenner committed Nov 21, 2024
1 parent 89f77f9 commit a45deea
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/testPublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ name: Test and publish
# events but only for the main branch.
on:
push:
branches: [ main, beta ]
branches: [ main ]
pull_request:
branches: [ main, beta ]
branches: [ main ]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand All @@ -24,12 +24,11 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build
- run: npm run build:test
- run: npm run test

release:
# Only release on push to main
if: github.event_name == 'push' && github.ref == 'refs/heads/main' || 'refs/heads/beta'
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
needs: test
steps:
Expand All @@ -40,7 +39,6 @@ jobs:
with:
node-version: 20
- run: npm ci
- run: npm run build:release
- uses: cycjimmy/semantic-release-action@v4
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
Expand Down

0 comments on commit a45deea

Please sign in to comment.