Skip to content

v0.102.0

v0.102.0 #108

Workflow file for this run

name: publish
on:
release:
types:
- published
jobs:
matrix:
runs-on: ubuntu-latest
outputs:
packages: ${{ steps.set_packages.outputs.packages }}
steps:
- uses: actions/checkout@v4
- id: set_packages
run: |
echo "packages=$(
find packages -mindepth 1 -maxdepth 1 -exec basename '{}' ';' \
| jq --compact-output --raw-input -n '[inputs]'
)" >> $GITHUB_OUTPUT
publish:
name: Publish ${{ matrix.package }}
runs-on: ubuntu-latest
needs: matrix
strategy:
fail-fast: false
matrix:
package: ${{ fromJson(needs.matrix.outputs.packages) }}
defaults:
run:
working-directory: ./packages/${{ matrix.package }}
steps:
- uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Install dependencies
run: npm install
working-directory: ./
- name: Build
run: npm run build --if-present
- name: Publish
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish