Skip to content

chore: release v0.1.4 #31

chore: release v0.1.4

chore: release v0.1.4 #31

Workflow file for this run

name: CI
on:
workflow_dispatch:
push:
branches:
- main
tags:
- "v*.*.*"
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: latest
- name: Install pnpm
uses: pnpm/action-setup@v3.0.0
with:
version: 8
- name: Install
run: pnpm install --no-frozen-lockfile
- name: Lint
run: pnpm run lint
publish:
runs-on: ubuntu-latest
needs: [lint]
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: latest
- name: Install pnpm
uses: pnpm/action-setup@v3.0.0
with:
version: 8
- name: Install packages
run: pnpm install --no-frozen-lockfile
- name: Pre-build
run: pnpm run pre-run
- name: Generate changelog
run: npx changelogithub
env:
GITHUB_TOKEN: ${{secrets.GH_TOKEN}}
- name: Publish package
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
deploy:
runs-on: ubuntu-latest
needs: [lint]
if: startsWith(github.ref, 'refs/heads/main')
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: latest
- name: Install pnpm
uses: pnpm/action-setup@v3.0.0
with:
version: 8
- name: Install packages
run: pnpm install --no-frozen-lockfile
- name: Pre-build
run: pnpm run pre-run
- name: Build
run: pnpm run build:gh-pages
- uses: actions/configure-pages@v4
- uses: actions/upload-pages-artifact@v3
with:
path: dist
- name: Deploy
id: deployment
uses: actions/deploy-pages@v4