Skip to content

chore!: drop Node.js v16 #511

chore!: drop Node.js v16

chore!: drop Node.js v16 #511

Workflow file for this run

on:
push:
branches:
- main
name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- name: Create Release
id: release
uses: google-github-actions/release-please-action@a2d8d683f209466ee8c695cd994ae2cf08b1642d # v4.0.1
with:
release-type: node
package-name: midnight-smoker
# see https://github.com/googleapis/release-please/blob/main/docs/manifest-releaser.md#using-with-github-actions-and-lerna
- name: Checkout Repository
if: ${{ steps.release.outputs.releases_created }}
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Setup Node
if: ${{ steps.release.outputs.releases_created }}
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- name: Upgrade npm
if: ${{ steps.release.outputs.releases_created }}
run: npm i -g npm@latest
- name: Build Package
if: ${{ steps.release.outputs.releases_created }}
uses: bahmutov/npm-install@2509f13e8485d88340a789a3f7ca11aaac47c9fc # v1.8.36
# Release Please has already incremented versions and published tags, so we just
# need to publish all unpublished versions to NPM here
# See: https://github.com/lerna/lerna/tree/main/commands/publish#bump-from-package
- name: Publish to npm
if: ${{ steps.release.outputs.releases_created }}
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
run: npm publish