-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtaskfile.dist.yml
More file actions
22 lines (20 loc) · 692 Bytes
/
taskfile.dist.yml
File metadata and controls
22 lines (20 loc) · 692 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
version: '3'
tasks:
npm:
dir: '{{.USER_WORKING_DIR}}/packaging/npm'
cmds:
- npm {{.CLI_ARGS}}
release:
requires:
vars: [VERSION]
cmds:
- 'sed -i "s/var Version = ".*"/var Version = \"{{.VERSION}}\"/" ./internal/version/version.go'
- 'sed -i "s/\"version\": ".*",/\"version\": \"{{.VERSION}}\",/" ./packaging/npm/package.json'
- git add ./internal/version/version.go
- git add ./packaging/npm/package.json
# - git commit -m "🔖 release version {{.VERSION}}"
# - git tag v{{.VERSION}}
# - git push origin
# - git push origin --tags
preconditions:
- test "$(git rev-parse --abbrev-ref HEAD)" = "main"