Skip to content

2.1.0

2.1.0 #28

Workflow file for this run

name: Release
on:
push:
branches:
- main
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 18
- name: Bundle 📦
run: |
npm install
npm run build
- name: Install and Build Demo 🔧
working-directory: demo
run: |
npm install
npm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
GITHUB_TOKEN: ${{ secrets.GH_ACTIONS }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: demo/build # The folder the action should deploy.
CLEAN: true # Automatically remove deleted files from the deploy branch
- name: Publish 📤
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}