Skip to content

Merge pull request #170 from case-contract-testing/dependabot/npm_and… #385

Merge pull request #170 from case-contract-testing/dependabot/npm_and…

Merge pull request #170 from case-contract-testing/dependabot/npm_and… #385

on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
name: Run Release Please
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
command: manifest
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: Checkout Repository
if: ${{ needs.release-please.outputs.releases_created }}
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
if: ${{ needs.release-please.outputs.releases_created }}
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
# - name: Build Packages
# if: ${{ steps.release.outputs.releases_created }}
# run: ci/build-and-test.sh
# env:
# CASE_BROKER_CI_TOKEN: ${{ secrets.PACTFLOW_TOKEN }}
# CASE_BROKER_BASEURL: https://timothyjones.pactflow.io/
# NODE_VERSION: ${{ matrix.node-version }}
# 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: ${{ steps.release.outputs.releases_created }}
# env:
# NODE_AUTH_TOKEN: ${{secrets.CONTRACT_CASE_NPM}}
# run: npx lerna publish from-package --no-push --no-private --yes