Skip to content

Move to ESLint 10 and @microbit/eslint-config 0.2.1 #53

Move to ESLint 10 and @microbit/eslint-config 0.2.1

Move to ESLint 10 and @microbit/eslint-config 0.2.1 #53

Workflow file for this run

name: build
on:
release:
types: [created]
push:
branches:
- '**'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6
with:
node-version: '24.x'
registry-url: 'https://registry.npmjs.org'
cache: npm
- run: npm install -g npm@11 --registry=https://registry.npmjs.org
- uses: microbit-foundation/npm-package-versioner-action@v3
- run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: npm run ci
- run: npm publish --allow-directory=all
if: github.event_name == 'release' && github.event.action == 'created'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}