Skip to content

build(deps): bump actions/dependency-review-action from 4.8.0 to 4.8.… #144

build(deps): bump actions/dependency-review-action from 4.8.0 to 4.8.…

build(deps): bump actions/dependency-review-action from 4.8.0 to 4.8.… #144

on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
name: Run Release Please
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
egress-policy: audit
- uses: googleapis/release-please-action@c2a5a2bd6a758a0937f1ddb1e8950609867ed15c # v4.3.0
id: release
with:
token: ${{ secrets.RATE_TOKEN_GH }}
outputs:
release_created: ${{ steps.release.outputs.release_created }}
tag_name: ${{ steps.release.outputs.tag_name }}
publish:
needs: [release-please]
runs-on: ubuntu-latest
steps:
# The logic below handles the npm publication:
- name: Harden Runner
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
with:
egress-policy: audit
- name: Checkout Repository
if: ${{ needs.release-please.outputs.release_created }}
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Setup Node
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
if: ${{ needs.release-please.outputs.release_created }}
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
- name: Build Packages
if: ${{ needs.release-please.outputs.release_created }}
run: ci/build-and-test.sh
env:
NODE_VERSION: 18
FORCE_COLOR: true
# 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: ${{ needs.release-please.outputs.release_created }}
# env:
# NODE_AUTH_TOKEN: ${{secrets.CONTRACT_CASE_NPM}}
# run: npx lerna publish from-package --no-push --no-private --yes