Skip to content

Release 0.10.0

Release 0.10.0 #51

Workflow file for this run

name: Publish Package
on:
push:
branches:
- master
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: npm ci
- run: npm run lint
release:
name: Build and publish package
runs-on: ubuntu-latest
needs: lint
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: master
- name: Check if version has been updated
id: check
uses: EndBug/version-check@v2
with:
diff-search: true
- name: Setup node
if: steps.check.outputs.changed == 'true'
uses: actions/setup-node@v3
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'
- name: Install dependences
if: steps.check.outputs.changed == 'true'
run: npm ci
- name: Build
if: steps.check.outputs.changed == 'true'
run: npm run build
- name: Publish package to NPM
if: steps.check.outputs.changed == 'true'
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
build-and-deploy:
name: Build and publish examples
runs-on: ubuntu-latest
needs: release
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install and Build
run: |
npm ci
npm run example:build
- name: Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: built-example