Skip to content

update license info #39

update license info

update license info #39

Workflow file for this run

name: CI
on:
push:
branches:
- main
tags:
- v*
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
ci:
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- name: πŸ›Ž Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: πŸ›  Setup node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: πŸ“¦ Install
run: npm ci
- name: πŸ§‘β€πŸ« Check Format
run: npm run format
- name: πŸ•΅οΈ Lint
run: npm run lint
- name: πŸ‘·β€β™‚οΈ Build
run: npm run build
- name: πŸ“‹ Collect Changes
if: ${{ github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') }}
id: changes
uses: simbo/changes-between-tags-action@v1
- name: πŸ“¦ Create Release Package
if: ${{ steps.changes.outcome == 'success' }}
run: zip -r dist.zip dist
- name: 🎁 Create GitHub Release
if: ${{ steps.changes.outcome == 'success' }}
uses: ncipollo/release-action@v1
with:
name: Release ${{ steps.changes.outputs.tag }}
body: ${{ steps.changes.outputs.changes }}
artifacts: dist.zip
- name: 🚚 Deploy to GitHub Pages
if: ${{ steps.changes.outcome == 'success' }}
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist
commit-message: Release ${{ github.ref_name }} from ${{ github.sha }}