Skip to content

1.0.10

1.0.10 #16

Workflow file for this run

name: release
on:
release:
types:
- created
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build_and_deploy_pages:
runs-on: ubuntu-latest
environment:
name: "github-pages"
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Use Node 22
uses: actions/setup-node@v3
with:
node-version: 22.x
- name: Use cached node_modules
uses: actions/cache@v3
with:
path: node_modules
key: nodeModules-22-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
run: npm install
env:
CI: true
- name: Tests
run: npm test
env:
CI: true
- name: Build project
run: npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
# Upload entire repository
path: "dist"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1