Skip to content

chore(deps): bump node from v22 to v24 (#1031) #439

chore(deps): bump node from v22 to v24 (#1031)

chore(deps): bump node from v22 to v24 (#1031) #439

name: publish-release
on:
push:
branches:
- main
workflow_dispatch:
inputs:
force-npm-publish:
description: "Force npm publish"
type: boolean
permissions:
contents: write
id-token: write # OIDC for npm Trusted Publishing
pull-requests: write
jobs:
publish-release:
if: github.repository == 'mdn/data'
runs-on: ubuntu-latest
steps:
- name: Release
uses: GoogleCloudPlatform/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38 # v4.4.0
id: release
- name: Setup
if: ${{ github.event.inputs.force-npm-publish || steps.release.outputs.release_created }}
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false
- name: Checkout
if: ${{ github.event.inputs.force-npm-publish || steps.release.outputs.release_created }}
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
with:
registry-url: "https://registry.npmjs.org/"
node-version-file: ".nvmrc"
package-manager-cache: false
# Ensure npm 11.5.1 or later for trusted publishing
- name: Install latest npm
if: ${{ github.event.inputs.force-npm-publish || steps.release.outputs.release_created }}
run: npm install -g npm@latest
- name: Install
if: ${{ github.event.inputs.force-npm-publish || steps.release.outputs.release_created }}
run: npm ci
- name: Publish
if: ${{ github.event.inputs.force-npm-publish || steps.release.outputs.release_created }}
run: npm publish --access public --provenance