Skip to content

Commit c038a4d

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 c038a4d

2 files changed

Lines changed: 19 additions & 5 deletions

File tree

.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: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,23 @@ 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+
permissions:
18+
contents: read
19+
id-token: write # required for npm OIDC trusted publishing
20+
steps:
21+
- uses: actions/checkout@v4
22+
with:
23+
ref: ${{ github.event.release.tag_name || inputs.tag }}
24+
submodules: recursive
25+
- uses: actions/setup-node@v4
26+
with:
27+
node-version: lts/*
28+
cache: yarn
29+
registry-url: https://registry.npmjs.org
30+
- run: yarn install --network-timeout 600000
31+
- run: yarn build
32+
- run: npm publish --access public

0 commit comments

Comments
 (0)