Skip to content

Commit

Permalink
123qasda
Browse files Browse the repository at this point in the history
  • Loading branch information
amr-crabnebula authored Dec 14, 2023
1 parent c387dab commit 2902519
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 6 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/covector-version-or-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,17 @@ jobs:
- name: covector version or publish (publish when no change files present)
uses: jbolda/covector/packages/action@covector-v0
id: covector
env:
NODE_AUTH_TOKEN: ${{ secrets.ORG_NPM_TOKEN }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
command: "publish"
createRelease: true

- name: Get result
run: >-
"{"releaseId": "${{ steps.covector.outputs['-org-dashed-pkg-releaseId'] }}" }"
- name: Trigger `@org-dashed/pkg` publishing workflow
if: |
steps.covector.outputs.successfulPublish == 'true' &&
contains(steps.covector.outputs.packagesPublished, '@org-dashed/pkg')
uses: peter-evans/repository-dispatch@v2
with:
event-type: publish-pkg
client-payload: >-
"{"releaseId": "${{ steps.covector.outputs['-org-dashed-releaseId'] }}" }"
16 changes: 16 additions & 0 deletions .github/workflows/publish-pkg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Publish `@org-dashed/pkg`

permissions:
contents: write
id-token: write

on:
repository_dispatch:
types: [publish-pkg]

jobs:
publish:
runs-on: "ubuntu-latest"
steps:
- name: Publish
run: echo "${{ github.event.client_payload.releaseId }}"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "@org-dashed/pkg",
"version": "0.19.0"
"version": "0.20.0"
}

0 comments on commit 2902519

Please sign in to comment.