Skip to content

Commit

Permalink
fix: Update release script to build packages
Browse files Browse the repository at this point in the history
Turns out, `@changesets/cli ` doesn't actually run a command which triggers `prepublishOnly` 😅
  • Loading branch information
Saeris committed Oct 5, 2023
1 parent 08d3ae9 commit 2f4b55b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
6 changes: 6 additions & 0 deletions .changeset/serious-eels-appear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@discordkit/client": patch
"@discordkit/core": patch
---

Actually fix missing build artifacts 😰
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Announce new release to Discord Channel
uses: ./apps/webhook-action
uses: ./apps/webhook-action/action.yml
if: steps.changesets.outputs.published == 'true'
with:
webhook: ${{ secrets.DISCORD_WEBHOOK_ID }}
Expand Down
2 changes: 1 addition & 1 deletion apps/webhook-action/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ inputs:
required: true
runs:
using: "node20"
main: "dist/index.js"
main: "./dist/index.js"
4 changes: 2 additions & 2 deletions apps/webhook-action/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "webhook-action",
"version": "0.0.2",
"description": "Enables a GitHub Action to send a message to Discord via webhooks.",
"license": "MIT",
"author": "Drake Costa <drake@saeris.gg> (https://saeris.gg)",
Expand All @@ -25,6 +26,5 @@
],
"minify": true,
"treeshake": true
},
"version": null
}
}
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@
"build:packages": "turbo run build",
"lint": "eslint \"./{apps,examples,packages,scripts}/**/*.{j,t}s?(x)\" --cache",
"format": "yarn lint --fix",
"prepublishOnly": "turbo run build build:cjs",
"prepack": "turbo run build",
"release": "changeset publish",
"release": "turbo run build build:cjs && changeset publish",
"test": "vitest --single-thread",
"version": "changeset version"
},
Expand Down

0 comments on commit 2f4b55b

Please sign in to comment.