Skip to content

Commit

Permalink
fix: STRF-10157 Fix sending event data to paper repo (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
jairo-bc authored Oct 20, 2022
1 parent 427a4c5 commit d416c0b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ jobs:
run: npm config list && npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GA_USERNAME: ${{ secrets.PAT_USERNAME }}
GA_TOKEN: ${{ secrets.PAT_TOKEN }}
5 changes: 2 additions & 3 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"@semantic-release/changelog",
["@semantic-release/github", {
"assets": [
{"path": "dist/blackbird-handlebars.js", "label": "helpers.js"},
{"path": "dist/index.js", "label": "index.js"}
{"path": "dist/blackbird-handlebars.js", "label": "helpers.js"}
]
}],
"@semantic-release/npm",
Expand All @@ -19,7 +18,7 @@
],
[
"@semantic-release/exec", {
"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}\"}"
"publishCmd": "./publish.sh ${nextRelease.version} ${nextRelease.notes}"
}
]
]
Expand Down
1 change: 1 addition & 0 deletions publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +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 comments on commit d416c0b

Please sign in to comment.