Skip to content

Commit 0469bea

Browse files
authored
ci(publish): workaround provenance bug (#14996)
1 parent e0c86d4 commit 0469bea

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/publishCI.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
import { publish } from '@vitejs/release-scripts'
22

3-
publish({ defaultPackage: 'vite', provenance: true, packageManager: 'pnpm' })
3+
// 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

Comments
 (0)