We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0c86d4 commit 0469beaCopy full SHA for 0469bea
scripts/publishCI.ts
@@ -1,3 +1,8 @@
1
import { publish } from '@vitejs/release-scripts'
2
3
-publish({ defaultPackage: 'vite', provenance: true, packageManager: 'pnpm' })
+// Check the tag passed in CI, and skip provenance if tag has `@` due to
4
+// https://github.com/slsa-framework/slsa-github-generator/pull/2758 not released
5
+const tag = process.argv.slice(2)[0] ?? ''
6
+const provenance = !tag.includes('@')
7
+
8
+publish({ defaultPackage: 'vite', provenance, packageManager: 'pnpm' })
0 commit comments