Skip to content

3.0.0-beta.5: Docs and minor fixes #27

3.0.0-beta.5: Docs and minor fixes

3.0.0-beta.5: Docs and minor fixes #27

Workflow file for this run

name: Publish Package
on:
release:
types: [ published ]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'
- name: Update npm
run: npm install -g npm@latest
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm run esbuild
- name: Run tests
run: pnpm run test
env:
TWITCH_ID: ${{ secrets.TWITCH_ID }}
TWITCH_SECRET: ${{ secrets.TWITCH_SECRET }}
- name: Publish to npmjs
if: github.event.release.prerelease == false
run: npm publish
- name: Publish to npmjs (prerelease)
if: github.event.release.prerelease == true
run: npm publish --tag next
- name: Publish to jsr
run: npx jsr publish