Skip to content

Commit

Permalink
build: update publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
fi3ework committed Sep 4, 2022
1 parent 127cdda commit 3be96a8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/publish.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import fs from 'fs-extra'
import { $ } from 'zx'
import { $, cd } from 'zx'
import minimist from 'minimist'

const args = minimist(process.argv.slice(2))
Expand All @@ -17,9 +17,11 @@ async function main() {
// https://github.com/google/zx/issues/144#issuecomment-859745076
const q = $.quote
$.quote = (v) => v
cd(`./packages/vite-plugin-checker`)
console.log(`馃И Releasing in @${distTag || 'latest'} dist-tag ...`)
await $`npx pnpm -r publish ${tagPart} --access public --no-git-checks`
await $`npm publish ${tagPart}`
$.quote = q
await $`cd ../..`
await $`git clean -fd`
}

Expand Down

0 comments on commit 3be96a8

Please sign in to comment.