Skip to content

Commit

Permalink
🚧 multi-repo instead of monorepo #19
Browse files Browse the repository at this point in the history
  • Loading branch information
trydofor committed Sep 22, 2024
1 parent 76e37a9 commit 6b72c21
Show file tree
Hide file tree
Showing 16 changed files with 21,460 additions and 11,329 deletions.
6 changes: 6 additions & 0 deletions .changeset/brown-spiders-rush.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@fessional/razor-common": patch
"@fessional/razor-mobile": patch
---

multi-repo instead of monorepo #19
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
}
24 changes: 19 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,35 @@ jobs:
fetch-depth: 0
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Use Node.js
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: 'pnpm'
- name: Install dependencies
run: pnpm install

- name: Create Release Pull Request or Publish to npm
- name: Release to npmjs
id: changesets
uses: changesets/action@v1
with:
commit: "chore: update versions"
title: "chore: update versions"
publish: pnpm publish -r --access public
commit: ":bookmark: update versions"
title: ":rocket: release versions"
publish: pnpm publ
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Release Report
id: report
run: |
echo "Published: ${{ steps.changesets.outputs.published }}" >> "$GITHUB_OUTPUT"
echo "" >> "$GITHUB_OUTPUT"
echo "| Package Name | Version |" >> "$GITHUB_OUTPUT"
echo "| ------------ | ------- |" >> "$GITHUB_OUTPUT"
echo '${{ steps.changesets.outputs.publishedPackages }}' | jq -c '.[]' | while read pkg; do
name=$(echo $pkg | jq -r '.name')
version=$(echo $pkg | jq -r '.version')
echo "| $name | $version |" >> "$GITHUB_OUTPUT"
done
6 changes: 0 additions & 6 deletions eslint.config.mjs

This file was deleted.

25 changes: 0 additions & 25 deletions layers/common/CHANGELOG.md

This file was deleted.

6 changes: 6 additions & 0 deletions layers/common/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// @ts-check
import withNuxt from './.nuxt/eslint.config.mjs';

export default withNuxt(
// https://eslint.nuxt.com/packages/module
);
38 changes: 19 additions & 19 deletions layers/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,26 @@
"test": "vitest"
},
"devDependencies": {
"nuxt": "catalog:common",
"@nuxt/eslint": "catalog:common",
"eslint": "catalog:common",
"vite-plugin-eslint2": "catalog:common",
"typescript": "catalog:common",
"vue-tsc": "catalog:common",
"@nuxt/test-utils": "catalog:common",
"@vue/test-utils": "catalog:common",
"happy-dom": "catalog:common",
"vitest": "catalog:common",
"@iconify-json/mdi": "catalog:common",
"@unocss/core": "catalog:common",
"@unocss/nuxt": "catalog:common",
"@unocss/preset-icons": "catalog:common",
"@unocss/preset-wind": "catalog:common",
"unocss": "catalog:common"
"nuxt": "3.13.2",
"@nuxt/eslint": "0.5.7",
"eslint": "9.10.0",
"vite-plugin-eslint2": "4.4.1",
"typescript": "5.6.2",
"vue-tsc": "2.1.6",
"@nuxt/test-utils": "3.14.2",
"@vue/test-utils": "2.4.6",
"happy-dom": "15.7.4",
"vitest": "2.1.1",
"@iconify-json/mdi": "1.2.0",
"@unocss/core": "0.62.4",
"@unocss/nuxt": "0.62.4",
"@unocss/preset-icons": "0.62.4",
"@unocss/preset-wind": "0.62.4",
"unocss": "0.62.4"
},
"dependencies": {
"@vueuse/core": "catalog:common",
"@vueuse/nuxt": "catalog:common",
"vue": "catalog:common"
"@vueuse/core": "11.1.0",
"@vueuse/nuxt": "11.1.0",
"vue": "3.5.5"
}
}
Loading

0 comments on commit 6b72c21

Please sign in to comment.