forked from vercel/turborepo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcombined-release.yml
75 lines (73 loc) · 1.78 KB
/
combined-release.yml
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
project_name: turbo
dist: dist
builds:
- id: turbo
builder: prebuilt
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
goamd64:
- v1
prebuilt:
path: dist-combined/turbo_{{ .Os }}_{{ .Arch }}{{ with .Amd64 }}_{{ .}}{{ end }}/bin/turbo{{ .Ext }}
hooks:
pre:
- cmd: ./scripts/npm-native-packages/npm-native-packages.js {{ .Os }} {{ .Arch }} {{ .Version }}
binary: bin/turbo
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ incpatch .Version }}"
archives:
- id: github
name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}"
wrap_in_directory: true
replacements:
amd64: 64
format: tar.gz
format_overrides:
- goos: windows
format: zip
files:
- LICENSE
- README.md
- id: npm
name_template: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}"
wrap_in_directory: true
replacements:
amd64: 64
format: tar.gz
files:
- LICENSE
- src: "scripts/npm-native-packages/build/{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}/package.json"
dst: "workaround/.."
strip_parent: true
- src: "scripts/npm-native-packages/build/{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}/README.md"
dst: "workaround/.."
strip_parent: true
- src: "scripts/npm-native-packages/build/{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}/bin/*"
dst: "bin/"
strip_parent: true
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
release:
github:
owner: vercel
name: turborepo
ids:
- github
prerelease: auto
disable: true
publishers:
- name: npm
ids:
- npm
cmd: "npm publish{{ if .Prerelease }} --tag canary{{ end }} {{ abs .ArtifactPath }}"