-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yaml
51 lines (42 loc) · 836 Bytes
/
Taskfile.yaml
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
version: '3'
silent: true
vars:
PACKAGE_MANAGER: bunx
VERSION:
sh: npx -c 'echo $npm_package_version'
tasks:
default:
cmds:
- echo "defalt-dashboard {{.VERSION}}"
install:
cmds:
- |
echo "Installing dependencies..."
{{.PACKAGE_MANAGER}} install
dev:
cmds:
- echo "Starting development server..."
- |
{{.PACKAGE_MANAGER}} umi dev
build:
env:
NODE_ENV: production
BABEL_CACHE: none
cmds:
- |
{{.PACKAGE_MANAGER}} umi build
tag:
cmds:
- cmd: |
git tag -a v{{.VERSION}} -m "chore: Release v{{.VERSION}}"
test:
cmds:
- echo "Testing..."
deploy:
cmds:
- echo "Deploying to Netlify..."
- netlify deploy --prod
publish:
cmds:
- task: build
- task: deploy