-
-
Notifications
You must be signed in to change notification settings - Fork 438
/
Copy pathpublish.js
57 lines (53 loc) · 1.14 KB
/
publish.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// @ts-check
import { resolve } from 'node:path'
import { fileURLToPath } from 'node:url'
import { publish } from '@tanstack/config/publish'
const __dirname = fileURLToPath(new URL('.', import.meta.url))
await publish({
packages: [
{
name: '@tanstack/angular-form',
packageDir: 'packages/angular-form',
},
{
name: '@tanstack/form-core',
packageDir: 'packages/form-core',
},
{
name: '@tanstack/lit-form',
packageDir: 'packages/lit-form',
},
{
name: '@tanstack/react-form',
packageDir: 'packages/react-form',
},
{
name: '@tanstack/solid-form',
packageDir: 'packages/solid-form',
},
{
name: '@tanstack/svelte-form',
packageDir: 'packages/svelte-form',
},
{
name: '@tanstack/vue-form',
packageDir: 'packages/vue-form',
},
],
branchConfigs: {
main: {
prerelease: false,
},
alpha: {
prerelease: true,
},
beta: {
prerelease: true,
},
},
rootDir: resolve(__dirname, '..'),
branch: process.env.BRANCH,
tag: process.env.TAG,
ghToken: process.env.GH_TOKEN,
})
process.exit(0)