Skip to content

ci: setup canary release #148

ci: setup canary release

ci: setup canary release #148

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- "18"
- "20"
- "22"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm i -g bower
- run: npm ci
- run: npm run static
- run: npm test
- 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