Skip to content

Update dependency eslint to v10.13.0 (#45) #150

Update dependency eslint to v10.13.0 (#45)

Update dependency eslint to v10.13.0 (#45) #150

Workflow file for this run

name: build
on:
release:
types: [created]
push:
branches:
- '**'
env:
# renovate: datasource=npm depName=npm
NPM_VERSION: '11'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6
with:
node-version: '24.x'
cache: npm
- run: npm install -g npm@${{ env.NPM_VERSION }} --registry=https://registry.npmjs.org
- uses: microbit-foundation/npm-package-versioner-action@v3
- run: npm ci
- run: npm run ci
- run: npm pack
if: github.event_name == 'release'
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
if: github.event_name == 'release'
with:
name: npm-tarball
path: '*.tgz'
if-no-files-found: error
retention-days: 1
publish:
needs: build
if: github.event_name == 'release'
runs-on: ubuntu-latest
environment: npm-publish
permissions:
contents: read
id-token: write
steps:
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: npm-tarball
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6
with:
node-version: '24.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install -g npm@${{ env.NPM_VERSION }} --registry=https://registry.npmjs.org
- run: npm stage publish --allow-file=all ./*.tgz