Skip to content

Commit

Permalink
ci: setup canary release (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoishin authored Dec 26, 2024
1 parent 8c9a033 commit 829b466
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
strategy:
matrix:
node-version:
- '18'
- '20'
- '22'
- "18"
- "20"
- "22"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -29,3 +29,18 @@ jobs:
- uses: codecov/codecov-action@v3
if: matrix.node-version == '22'
- run: npm run build

canary-publish:
if: github.event_name == 'push' && github.ref_name == 'main'
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22"
- run: npm ci
- run: npm run build
- run: |
npm version 0.0.0-canary.${{ github.sha }}
npm publish --tag canary

0 comments on commit 829b466

Please sign in to comment.