Skip to content

Display version number #16

Display version number

Display version number #16

Workflow file for this run

name: CI
on:
push:
branches:
- main
tags:
- "[0-9]+.[0-9]+.[0-9]+"
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: ./.node-version
- uses: actions/cache@v4
with:
path: node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}
restore-keys: |
node-modules-
- run: npm install
- run: npm run test
deploy:
needs: test
permissions:
contents: read
pages: write
id-token: write
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- uses: actions/configure-pages@v5
- name: Build
env:
KSESH_VERSION: ${{ github.ref_name }}
run: |
npm install
npm run build
- uses: actions/upload-pages-artifact@v3
with:
path: './public'
- uses: actions/deploy-pages@v4