Skip to content

Add ReadMore component and examples #1

Add ReadMore component and examples

Add ReadMore component and examples #1

Workflow file for this run

name: Publish to NPM and Github Pages
on:
push:
branches: [release]
jobs:
deploy:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: '18.12.1'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Install examples dependencies
working-directory: examples
run: npm ci
- name: Build examples
working-directory: examples
run: npm run build
- name: Test examples
working-directory: examples
run: npm test
- name: Publish to NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Deploy examples to Github Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./examples/build