Files
alfresco-ng2-components/.github/workflows/package_dispatch.yml
Amedeo Lepore 25418c22cd Check js api unit test issue (#9163)
* Revert "build(deps): bump actions/checkout in /.github/actions/artifact-extract (#9131)"

This reverts commit 3837d19b58.

* Revert "build(deps): bump actions/github-script from 6.4.1 to 7.0.1 (#9127)"

This reverts commit e47b1100d1.

* Revert "build(deps): bump actions/checkout from 3.6.0 to 4.1.1 (#9128)"

This reverts commit da018aadb9.

* Revert "build(deps): bump Alfresco/alfresco-build-tools (#9139)"

This reverts commit f2764d0638.

* Revert "build(deps): bump Alfresco/alfresco-build-tools from 1.36.0 to 5.4.0 (#9138)"

This reverts commit 76eca49985.

* Revert "build(deps): bump actions/setup-node from 3.8.2 to 4.0.0 (#9149)"

This reverts commit 167a5be810.
2023-12-13 17:07:04 +00:00

30 lines
990 B
YAML

name: Package published
on:
registry_package:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
if: github.event.registry_package.package_type == 'npm' && github.event.registry_package.name == 'adf-core'
steps:
- name: Dispatch event to monorepo
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1
with:
github-token: ${{ secrets.PAT_WRITE_PKG }}
retries: 3
script: |
const payload = {
package_name: "${{ github.event.registry_package.name }}",
package_version: "${{ github.event.registry_package.package_version.name }}"
};
await github.rest.repos.createDispatchEvent({
owner: context.repo.owner,
repo: "alfresco-apps",
event_type: "package-published",
client_payload: payload
});
console.log(`Trigger a dispatch event for the monorepo`);