Skip to content

Commit d416c0b

Browse files
authored
fix: STRF-10157 Fix sending event data to paper repo (#220)
1 parent 427a4c5 commit d416c0b

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ jobs:
2222
run: npm config list && npm run release
2323
env:
2424
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
GA_USERNAME: ${{ secrets.PAT_USERNAME }}
26+
GA_TOKEN: ${{ secrets.PAT_TOKEN }}

.releaserc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
"@semantic-release/changelog",
77
["@semantic-release/github", {
88
"assets": [
9-
{"path": "dist/blackbird-handlebars.js", "label": "helpers.js"},
10-
{"path": "dist/index.js", "label": "index.js"}
9+
{"path": "dist/blackbird-handlebars.js", "label": "helpers.js"}
1110
]
1211
}],
1312
"@semantic-release/npm",
@@ -19,7 +18,7 @@
1918
],
2019
[
2120
"@semantic-release/exec", {
22-
"publishCmd": "curl -XPOST -u \"${{ secrets.PAT_USERNAME}}:${{secrets.PAT_TOKEN}}\" -H \"Accept: application/vnd.github.everest-preview+json\" -H \"Content-Type: application/json\" https://api.github.com/repos/bigcommerce/paper/dispatches --data '{\"event_type\": \"bump_hbs\", \"version\": \"${nextRelease.version}\", \"notes\": \"${nextRelease.notes}\"}"
21+
"publishCmd": "./publish.sh ${nextRelease.version} ${nextRelease.notes}"
2322
}
2423
]
2524
]

publish.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
curl -XPOST -u "$GA_USERNAME:$GA_TOKEN" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" https://api.github.com/repos/bigcommerce/paper/dispatches --data '{"event_type": "bump_hbs", "version": "'$1'", "notes": "'$2'"}'

0 commit comments

Comments
 (0)