Skip to content

build(deps-dev): bump the npm-dev group with 3 updates (#1881) #1046

build(deps-dev): bump the npm-dev group with 3 updates (#1881)

build(deps-dev): bump the npm-dev group with 3 updates (#1881) #1046

Workflow file for this run

name: NPM Publish
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
id-token: write # OIDC for npm Trusted Publishing
jobs:
build:
if: github.repository == 'mdn/fred' && github.secret_source == 'Actions'
runs-on: ubuntu-latest
steps:
- name: Release
uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5.0.0
id: release
with:
config-file: .github/release-please-config.json
manifest-file: .github/release-please-manifest.json
token: ${{ secrets.RELEASE_PLEASE_GITHUB_TOKEN }}
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
if: steps.release.outputs.release_created
with:
persist-credentials: false
- name: Setup
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
if: steps.release.outputs.release_created
with:
node-version-file: ".nvmrc"
registry-url: "https://registry.npmjs.org"
package-manager-cache: false
- name: Install
if: steps.release.outputs.release_created
run: npm ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish
if: steps.release.outputs.release_created
run: npm publish --access public --provenance
env:
FRED_RUNTIME_ENV: true
# TODO: probably want to disable this, but it doesn't seem to work in content at the moment:
FRED_LEGACY: true