Skip to content

Commit

Permalink
chore: fix publish
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Mar 24, 2024
1 parent 5910f13 commit 7846774
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scripts/publishCI.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
;(async () => {
const { publish } = await import('@vitejs/release-scripts')

// Check the tag passed in CI, and skip provenance if tag has `@` due to
// https://github.com/slsa-framework/slsa-github-generator/pull/2758 not released
const tag = process.argv.slice(2)[0] ?? ''
const provenance = !tag.includes('@')
// pnpm 7.14.1 doesn't support this
const provenance = false

publish({ defaultPackage: 'vite', provenance, packageManager: 'pnpm' })
})()

0 comments on commit 7846774

Please sign in to comment.