Skip to content

fix: fix release-please6 ^^ #10

fix: fix release-please6 ^^

fix: fix release-please6 ^^ #10

on:
push:
branches:
- master
workflow_dispatch:
name: "Release Please"
jobs:
release-please:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
outputs:
selenium/javascript--id: ${{ steps.release-please.outputs['selenium/javascript--id'] }}
selenium/javascript--tag: ${{ steps.release-please.outputs['selenium/javascript--tag_name'] }}
selenium/javascript--created: ${{ steps.release-please.outputs['selenium/javascript--release_created'] }}
steps:
- uses: googleapis/release-please-action@7987652d64b4581673a76e33ad5e98e3dd56832f # v4
id: release-please
with:
token: ${{ secrets.MY_RELEASE_PLEASE_TOKEN }}
config-file: '.github/release-please-config.json'
manifest-file: '.github/.release-please-manifest.json'
- run: |
echo '${{ toJSON(steps.release-please.outputs) }}'
release-please-output:
runs-on: ubuntu-latest
steps:
- run: |
echo '${{ toJSON(needs.release-please.outputs) }}'
needs: [ release-please ]
publish-npm:
needs: [ release-please ]
if: ${{ needs.release-please.outputs['selenium/javascript--created'] }}
uses: "./.github/workflows/npm-publish-package.yaml"
with:
package: 'selenium/javascript'
tag: ${{ needs.release-please.outputs['selenium/javascript--tag'] }}
secrets:
NPM_REGISTRY_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }}