Skip to content

Move to ESLint 10 and @microbit/eslint-config 0.2.1 (#26) #99

Move to ESLint 10 and @microbit/eslint-config 0.2.1 (#26)

Move to ESLint 10 and @microbit/eslint-config 0.2.1 (#26) #99

Workflow file for this run

name: build-docs
on:
release:
types: [created]
push:
branches:
- '**'
tags:
- '**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6
with:
node-version: '24.x'
cache: npm
- run: npm install -g npm@11 --registry=https://registry.npmjs.org
- name: Setup Pages
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5
- run: npm ci
- name: Build docs
run: npm run docs
- name: Upload artifact
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5
with:
path: ./docs/build
deploy:
if: ${{ startsWith(github.ref, 'refs/tags/') }}
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5