Skip to content

Commit 9444bea

Browse files
jkebingerclaude
andcommitted
Add submodules: recursive to release workflows
The publish and manual release workflows were failing because the prefab-common submodule wasn't being checked out. Added submodules: recursive to the checkout steps. Replaced the external oclif npmPublish workflow with a custom one that properly handles submodules. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 09dd283 commit 9444bea

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

.github/workflows/manualRelease.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
- uses: actions/checkout@v4
1111
with:
1212
token: ${{ secrets.SVC_CLI_BOT_GITHUB_TOKEN }}
13+
submodules: recursive
1314
- name: Conventional Changelog Action
1415
id: changelog
1516
uses: TriPSs/conventional-changelog-action@d360fad3a42feca6462f72c97c165d60a02d4bf2

.github/workflows/onRelease.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,22 @@ on:
1010
description: tag that needs to publish
1111
type: string
1212
required: true
13+
1314
jobs:
1415
npm:
15-
uses: oclif/github-workflows/.github/workflows/npmPublish.yml@main
16-
with:
17-
tag: latest
18-
githubTag: ${{ github.event.release.tag_name || inputs.tag }}
19-
secrets: inherit
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
with:
20+
ref: ${{ github.event.release.tag_name || inputs.tag }}
21+
submodules: recursive
22+
- uses: actions/setup-node@v4
23+
with:
24+
node-version: lts/*
25+
cache: yarn
26+
registry-url: https://registry.npmjs.org
27+
- run: yarn install --network-timeout 600000
28+
- run: yarn build
29+
- run: npm publish --access public
30+
env:
31+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)