Skip to content

v3.0.0-rc.0

v3.0.0-rc.0 #21

Workflow file for this run

name: Publish
on:
release:
types: [published]
permissions:
id-token: write
contents: read
jobs:
publish:
if: contains('["morganney"]', github.actor)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6.0.1
- name: Setup Node
uses: actions/setup-node@v6.2.0
with:
node-version: '24.13.0'
- name: Install Dependencies
run: npm ci
- name: Save error log
uses: actions/upload-artifact@v6.0.0
if: ${{ failure() }}
with:
name: npm-debug-log-${{ hashFiles('package-lock.json') }}
path: npm-debug.log
- name: Test
run: npm test
- name: Lint
run: npm run lint
- name: Pack
run: npm pack
- name: Push to NPM registry
uses: JS-DevTools/npm-publish@v4.1.1
with:
tag: ${{ contains(github.ref, '-') && 'next' || 'latest' }}