chore(deps): bump webpack from 5.95.0 to 5.96.1 (#2034) #1150
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: publish-release | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
inputs: | |
force-npm-publish: | |
description: "Force npm publish" | |
type: boolean | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
publish-release: | |
if: github.repository == 'mdn/bob' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Release | |
uses: GoogleCloudPlatform/release-please-action@v4 | |
id: release | |
- name: Setup | |
if: ${{ github.event.inputs.force-npm-publish || steps.release.outputs.release_created }} | |
uses: actions/checkout@v4 | |
- name: Checkout | |
if: ${{ github.event.inputs.force-npm-publish || steps.release.outputs.release_created }} | |
uses: actions/setup-node@v4 | |
with: | |
registry-url: "https://registry.npmjs.org/" | |
node-version-file: ".nvmrc" | |
- 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 | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} |