Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .changeset/warm-turbo-forks.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
22 changes: 12 additions & 10 deletions .github/actions/init-blacksmith/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ inputs:
required: false
turbo-team:
description: 'The team to use for Turbo remote auth'
required: true
required: false
turbo-token:
description: 'The token to use for Turbo remote auth'
required: true
required: false
registry-url:
description: 'The registry the packages will be published to'
required: false
Expand Down Expand Up @@ -82,15 +82,17 @@ runs:
)

if (ENABLED === 'true') {
if (!TEAM) {
throw new Error('turbo-team input is required and must not be empty')
}
if (!TOKEN) {
throw new Error('turbo-token input is required and must not be empty')
const missing = []
if (!TEAM) missing.push('turbo-team')
if (!TOKEN) missing.push('turbo-token')

if (missing.length > 0) {
core.warning(`Missing Turbo remote cache credentials: ${missing.join(', ')}. Turbo remote caching will be disabled.`)
} else {
core.exportVariable('TURBO_CACHE', CACHE)
core.exportVariable('TURBO_TEAM', TEAM)
core.exportVariable('TURBO_TOKEN', TOKEN)
}
core.exportVariable('TURBO_CACHE', CACHE)
core.exportVariable('TURBO_TEAM', TEAM)
core.exportVariable('TURBO_TOKEN', TOKEN)
}

if (SIGNATURE && SIGNATURE !== '') {
Expand Down
22 changes: 12 additions & 10 deletions .github/actions/init/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ inputs:
required: false
turbo-team:
description: 'The team to use for Turbo remote auth'
required: true
required: false
turbo-token:
description: 'The token to use for Turbo remote auth'
required: true
required: false
registry-url:
description: 'The registry the packages will be published to'
required: false
Expand Down Expand Up @@ -82,15 +82,17 @@ runs:
)

if (ENABLED === 'true') {
if (!TEAM) {
throw new Error('turbo-team input is required and must not be empty')
}
if (!TOKEN) {
throw new Error('turbo-token input is required and must not be empty')
const missing = []
if (!TEAM) missing.push('turbo-team')
if (!TOKEN) missing.push('turbo-token')

if (missing.length > 0) {
core.warning(`Missing Turbo remote cache credentials: ${missing.join(', ')}. Turbo remote caching will be disabled.`)
} else {
core.exportVariable('TURBO_CACHE', CACHE)
core.exportVariable('TURBO_TEAM', TEAM)
core.exportVariable('TURBO_TOKEN', TOKEN)
}
core.exportVariable('TURBO_CACHE', CACHE)
core.exportVariable('TURBO_TEAM', TEAM)
core.exportVariable('TURBO_TOKEN', TOKEN)
}

if (SIGNATURE && SIGNATURE !== '') {
Expand Down
Loading