Skip to content

Commit 4596a17

Browse files
authored
chore(infra): Update to new API release endpoint (#4550)
1 parent d4fc7ce commit 4596a17

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.circleci/config.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,11 +273,15 @@ jobs:
273273
name: Trigger database update via API
274274
command: |
275275
export VERSION_FROM_TAG=$([[ ${CIRCLE_TAG} -eq "v" ]] && echo ${CIRCLE_TAG:1:20} || echo ${CIRCLE_TAG})
276-
curl --location --request POST 'https://api-load.lightningdesignsystem.com/reload?token=${DSE_API_LOAD_TOKEN}' \
276+
export SALESFORCE_VERSION=$(cat package.json | jq -r .slds.id)
277+
export VERSION_FROM_PACKAGE=$(cat package.json | jq -r .version)
278+
curl --location --request PATCH 'https://design-systems-api.herokuapp.com/v1/release' \
277279
--header 'Content-Type: application/json' \
280+
--header 'Authorization: Bearer ${DSE_API_RELEASE_TOKEN}' \
278281
--data-raw '{
279282
"sha": "${CIRCLE_SHA1}",
280-
"version": "${VERSION_FROM_TAG}"
283+
"version": "${VERSION_FROM_TAG}",
284+
"salesforce_version": "${SALESFORCE_VERSION}"
281285
}'
282286
283287
# Build static Storybook

0 commit comments

Comments
 (0)