Skip to content

v4.0.0-rc.1

v4.0.0-rc.1 #35

Workflow file for this run

name: Publish
on:
release:
types: [published]
jobs:
publish:
if: contains('["morganney"]', github.actor)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
- name: Setup Node
uses: actions/setup-node@v4.0.2
with:
node-version: '20.11.1'
- name: Install Dependencies
run: npm ci
- name: Save error log
uses: actions/upload-artifact@v4.3.0
if: ${{ failure() }}
with:
name: npm-debug-log-${{ hashFiles('package-lock.json') }}
path: npm-debug.log
- name: Pack
run: npm pack --pack-destination=packages/tts-react --workspace=tts-react
- name: Lint
run: npm run lint
- name: Test
run: npm test
- name: Push to NPM registry
uses: JS-DevTools/npm-publish@v3.1.1
with:
token: ${{ secrets.NPM_AUTH_TOKEN }}
package: packages/tts-react
tag: ${{ contains(github.ref, '-') && 'next' || 'latest' }}