Skip to content

Commit b48d71a

Browse files
committed
fix: continuous deployment to npm
1 parent c7c51b8 commit b48d71a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/release-please.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ jobs:
1515
with:
1616
release-type: node
1717
package-name: react-alternating-timeline
18+
outputs:
19+
ref: refs/tags/${{ steps.release.outputs.tag_name }}
20+
released: ${{ steps.release.outputs.releases_created }}
1821

19-
- name: Checkout repo
20-
uses: actions/checkout@v3
21-
if: ${{ steps.release.outputs.releases_created }}
22-
23-
- name: Call for deployment
24-
uses: ./.github/workflows/cd-npm.yml
25-
with:
26-
ref: refs/tags/${{ steps.release.outputs.tag_name }}
27-
if: ${{ steps.release.outputs.releases_created }}
22+
call-for-deployment:
23+
uses: ./.github/workflows/cd-npm.yml
24+
needs: release-please
25+
with:
26+
ref: refs/tags/${{ needs.release-please.outputs.ref }}
27+
if: ${{ needs.release-please.outputs.released }}

0 commit comments

Comments
 (0)