Skip to content

Commit

Permalink
Ci/release (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
micheleriva authored Mar 22, 2023
1 parent bd965e3 commit 849edae
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"test:plugin-parsedoc": "cd packages/plugin-parsedoc && npm test",
"commit": "turbo lint && pnpm lint-staged && cz",
"prepare": "husky install .husky",
"publish-packages": "turbo run lint build test && changeset version && changeset publish"
"publish-packages": "zx ./release.mjs"
},
"devDependencies": {
"@swc/cli": "^0.1.59",
Expand Down
20 changes: 20 additions & 0 deletions release.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env zx

const packages = [
'orama',
'plugin-astro',
'plugin-data-persistence',
'plugin-docusaurus',
'plugin-match-highlight',
'plugin-parsedoc',
]

await $`turbo test`
await $`turbo build`

await $`cp README.md packages/orama/README.md`

for (const pkg of packages) {
const cwd = process.cwd()
await $`cd ${cwd}/packages/${pkg} && pnpm publish`
}

0 comments on commit 849edae

Please sign in to comment.