11![ tea] ( https://tea.xyz/banner.png )
22
3- [ ` install.sh ` ] ( ./install.sh ) is delivered when you ` curl tea.xyz ` .
3+ * [ ` install.sh ` ] ( ./install.sh ) is delivered when you ` curl tea.xyz ` .
4+ * This repository also provides the ` tea ` GitHub Action.
45
5- # GitHub Action 0.13.2
66
7- This repository also provides the ` tea ` GitHub Action.
7+ # GitHub Action 0.14.0
88
99``` yaml
1010- uses : teaxyz/setup@v0
1111` ` `
1212
13+ Installs tea, your dependencies (computed from your developer environment),
14+ adds your deps to ` PATH` and exports some other *tea’ish* variables like
15+ ` VERSION` .
1316
14- # Usage
17+ See [`action.yml`] for all inputs and outputs, but here’s the usual ones :
1518
16- ## Via Terminal
19+ ` ` ` yaml
20+ - uses: teaxyz/setup@v0
21+ with:
22+ +: |
23+ deno.land^1.30
24+ rust-lang.org^1.60
25+ ` ` `
26+
27+ Our packages are named after their homepages, to see what is available you
28+ can browse the pantry on our website :
29+ [tea.xyz] (we agree this isn’t great UX)
30+
31+ # # Magic
32+
33+ We cannot install our shell magic into GitHub Actions. So unless you manually
34+ add a package with `+:` you will need to ensure it is called with a `tea`
35+ prefix, eg. `tea npx`.
36+
37+ # # Interesting Usages
38+
39+ At tea, we consider the version in the `README` the definitive version.
40+ Thus we use GitHub Actions to automatically tag and publish that version when
41+ the README is edited and the version changes.
42+
43+ See our CI scripts for details.
44+
45+
46+
47+ # `tea` Installer
48+
49+ To install tea :
1750
1851` ` ` sh
19- sh <(curl tea.xyz)
52+ $ sh <(curl tea.xyz)
2053
2154# - installs to ` ~/.tea`
2255# - if tea is already installed, the script instead checks for updates
2356```
2457
58+ To use tea to run a command in a temporary sandbox:
59+
2560``` sh
26- sh <( curl -Ssf tea.xyz) gum spin -- sleep 5
61+ $ sh <( curl -Ssf tea.xyz) gum spin -- sleep 5
2762
2863# - if tea is installed, uses that installation to run gum
2964# - if tea is *not* installed, downloads gum and its deps to a safe and
@@ -32,44 +67,26 @@ sh <(curl -Ssf tea.xyz) gum spin -- sleep 5
3267
3368> NOTE we omit ` https:// ` for clarity, * please* include it in all your usages.
3469
35- ### Options
70+ ## Options
3671
3772* ` sh <(curl tea.xyz) --yes ` assumes affirmative for all prompts
3873* ` sh <(curl tea.xyz) --prefix foo ` change install location (you can use this option to force a re-install)
3974* ` sh <(curl tea.xyz) --version 1.2.3 ` install a specific version of tea
4075
4176
42- ## Via GitHub Actions
43-
44- ``` yaml
45- - uses : teaxyz/setup@v0
46- ` ` `
47-
48- Installs tea, your dependencies (listed in your ` README.md`), adds your deps
49- to `PATH` and exports some other *tea’ish* variables like `VERSION`.
50-
51- See [`action.yml`] for all inputs and outputs.
52-
53- > NOTE: we cannot install our shell magic, so if eg. `npx` is not listed in
54- > your dependencies you will need to invoke it as `tea npx` to use it.
55-
56- # ## Interesting Usages
57-
58- At tea, we consider the version in the `README` the definitive version.
59- Thus we use GitHub Actions to automatically tag and publish that version when
60- the README is edited and the version changes.
61-
62- See our CI scripts for details.
6377
78+   ;
6479
6580# Tasks
6681
67- # # Test
82+ ## Check
6883
69- Run this with `xc test `.
84+ Run this with ` xc check ` .
7085
7186``` sh
7287node --check ./action.js
7388```
7489
90+
7591[ `action.yml` ] : ./action.yml
92+ [ tea.xyz ] : https://tea.xyz
0 commit comments