Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

Commit

Permalink
proper build order before publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-8 committed May 19, 2023
1 parent e0f8f09 commit 2701d77
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,15 @@ jobs:
- name: Install Dependencies
run: pnpm install

- name: Build
run: pnpm -F svelte-scoped-uno build
- run: pnpm -F svelte-preprocess-unocss build

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
# release calls changeset publish which runs the prepublishOnly scripts in each package beforehand to test and build
# release calls changeset publish which runs the prepublishOnly scripts in each package beforehand to test
publish: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 1 addition & 3 deletions packages/svelte-preprocess-unocss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
"type": "module",
"scripts": {
"build": "unbuild",
"stub": "unbuild --stub",
"test": "vitest",
"prepublishOnly": "pnpm build"
"stub": "unbuild --stub"
},
"exports": {
".": {
Expand Down
2 changes: 1 addition & 1 deletion packages/svelte-scoped-uno/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"build": "unbuild",
"stub": "unbuild --stub",
"test": "vitest",
"prepublishOnly": "vitest run && pnpm build"
"prepublishOnly": "vitest run"
},
"exports": {
".": {
Expand Down

0 comments on commit 2701d77

Please sign in to comment.