Skip to content

Commit

Permalink
πŸ‘·β€β™€οΈ Move release step into single job
Browse files Browse the repository at this point in the history
Combines our jobs into a single job to avoid the overheads of running
two jobs (and maintaining them).
  • Loading branch information
alecgibson committed Jan 18, 2024
1 parent 83417d3 commit b7226d8
Showing 1 changed file with 5 additions and 21 deletions.
26 changes: 5 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,24 +37,8 @@ jobs:
run: npm run build
- name: test
run: npm run test

release:
needs:
- test
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://npm.pkg.github.com'
- name: Install
run: npm install
- name: Build
run: npm run build
- name: Release
run: ./release.sh
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
run: ./release.sh
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit b7226d8

Please sign in to comment.