Skip to content

Release

Release #7

Workflow file for this run

name: Release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
on:
release:
types: [released]
jobs:
distributed-tasks:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
target: ['lint:ci', 'test:dom', 'test:node', 'itest:dom', 'itest:node']
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: 'npm'
- run: npm ci
- run: npm run ${{ matrix.target }}
release:
name: Build and release
needs: [distributed-tasks]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: 'npm'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run build
- run: npm pack
- name: Publish package on NPM 📦
run: npm publish --access public