Skip to content

Commit aa0024b

Browse files
mxcldependabot[bot]
andcommitted
update installer for v1 (#176)
The action remains v0 for now. We need the pantry to understand pre-releases or to wait for v1 proper. only compile dist for releases (#186) this so dependabot pull requests will work. they don’t currently because we require the user to run dist, but that’s unreasonable and bots won’t do it so… I like this less in that now we have a dist folder committed to main *however* it is not always current :/ Bump actions/checkout from 3 to 4 Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Bump aws-actions/configure-aws-credentials from 1 to 4 Bumps [aws-actions/configure-aws-credentials](https://github.com/aws-actions/configure-aws-credentials) from 1 to 4. - [Release notes](https://github.com/aws-actions/configure-aws-credentials/releases) - [Changelog](https://github.com/aws-actions/configure-aws-credentials/blob/main/CHANGELOG.md) - [Commits](aws-actions/configure-aws-credentials@v1...v4) --- updated-dependencies: - dependency-name: aws-actions/configure-aws-credentials dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Bump @vercel/ncc from 0.36.1 to 0.38.0 Bumps [@vercel/ncc](https://github.com/vercel/ncc) from 0.36.1 to 0.38.0. - [Release notes](https://github.com/vercel/ncc/releases) - [Commits](vercel/ncc@0.36.1...0.38.0) --- updated-dependencies: - dependency-name: "@vercel/ncc" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Bump @teaxyz/lib from 0.6.2 to 0.13.0 Bumps [@teaxyz/lib](https://github.com/teaxyz/lib) from 0.6.2 to 0.13.0. - [Release notes](https://github.com/teaxyz/lib/releases) - [Commits](pkgxdev/libpkgx@v0.6.2...v0.13) --- updated-dependencies: - dependency-name: "@teaxyz/lib" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Bump @actions/core from 1.10.0 to 1.10.1 Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.10.0 to 1.10.1. - [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md) - [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core) --- updated-dependencies: - dependency-name: "@actions/core" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Bump @types/node from 20.2.5 to 20.6.1 Dependabot couldn't find the original pull request head commit, c2d61a9. Bump typescript from 5.1.3 to 5.2.2 (#183) Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.1.3 to 5.2.2. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](microsoft/TypeScript@v5.1.3...v5.2.2) --- updated-dependencies: - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Max Howell <[email protected]>
1 parent 034d006 commit aa0024b

24 files changed

+521
-1177
lines changed

.github/CI_FAILURE_ISSUE_TEMPLATE.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
- package-ecosystem: "npm"
8+
directory: "/"
9+
schedule:
10+
interval: "weekly"

.github/smoke-test.sh

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/workflows/cd.yml

Lines changed: 39 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,32 @@
11
on:
2-
push:
3-
branches:
4-
- main
52
workflow_dispatch:
6-
7-
permissions:
8-
contents: read
3+
inputs:
4+
version:
5+
required: true
96

107
jobs:
11-
# check if this is a new release
12-
smoke:
8+
qa.installer:
9+
uses: ./.github/workflows/ci.installer.yml
10+
qa.action:
11+
uses: ./.github/workflows/ci.action.yml
12+
13+
dist:
14+
needs: [qa.installer, qa.action]
1315
runs-on: ubuntu-latest
14-
outputs:
15-
version: ${{ steps.tea.outputs.version }}
1616
steps:
17-
- uses: actions/checkout@v3
18-
- uses: ./
19-
id: tea
20-
21-
- id: rev-parse
22-
name: did we already publish this version?
23-
run: |
24-
# fetch tags since actions/checkout is a shallow checkout
25-
git fetch --prune --unshallow --tags
26-
27-
if git show-ref --tags v${{ steps.tea.outputs.version }} --quiet; then
28-
echo "::set-output name=result::cancel"
29-
fi
30-
31-
- uses: andymckay/[email protected]
32-
if: ${{ steps.rev-parse.outputs.result == 'cancel' }}
33-
34-
ci:
35-
needs: [smoke]
36-
uses: ./.github/workflows/ci.yml
37-
secrets: inherit
38-
39-
ci-pre-reqs:
40-
needs: [smoke]
41-
uses: ./.github/workflows/ci-pre-reqs.yml
42-
secrets: inherit
17+
- uses: actions/checkout@v4
18+
- run: curl -Ssf https://tea.xyz/$(uname)/$(uname -m).tgz | sudo tar xz -C /usr/local/bin
19+
- run: ./scripts/dist.sh
20+
- uses: actions/upload-artifact@v2
21+
with:
22+
name: dist
23+
path: dist
4324

4425
put:
4526
permissions:
4627
contents: write
4728
deployments: write
48-
needs: [ci, ci-pre-reqs, smoke]
29+
needs: dist
4930
runs-on: ubuntu-latest
5031
steps:
5132
- name: Create Deployment
@@ -55,38 +36,45 @@ jobs:
5536
step: start
5637
env: aws
5738

58-
- uses: actions/checkout@v3
39+
- uses: actions/checkout@v4
40+
- uses: actions/download-artifact@v2
41+
with:
42+
name: dist
43+
path: dist
5944

60-
- uses: aws-actions/configure-aws-credentials@v1
45+
- uses: aws-actions/configure-aws-credentials@v4
6146
with:
6247
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
6348
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
6449
aws-region: us-east-1
6550

66-
- run: |
67-
aws s3 cp \
68-
./install.sh s3://www.tea.xyz/pour.sh \
69-
--metadata-directive REPLACE \
51+
- run:
52+
aws s3 cp
53+
./installer.sh s3://www.tea.xyz/pour.sh
54+
--metadata-directive REPLACE
7055
--cache-control no-cache,must-revalidate
71-
- run: |
72-
aws cloudfront create-invalidation \
73-
--distribution-id ${{ secrets.AWS_CF_DISTRIBUTION_ID }} \
56+
- run:
57+
aws cloudfront create-invalidation
58+
--distribution-id ${{ secrets.AWS_CF_DISTRIBUTION_ID }}
7459
--paths / /pour.sh
7560

61+
- uses: git-actions/set-user@v1
7662
- run: |
77-
git tag v${{ needs.smoke.outputs.version }}
78-
git push origin v${{ needs.smoke.outputs.version }}
63+
git add dist
64+
git commit -m 'v${{ github.event.inputs.version }}
65+
git tag v${{ github.event.inputs.version }}
66+
git push origin v${{ github.event.inputs.version }} main
7967
8068
- uses: softprops/action-gh-release@v1
8169
with:
82-
files: ./install.sh
83-
tag_name: v${{ needs.smoke.outputs.version }}
70+
files: ./installer.sh
71+
tag_name: v${{ github.event.inputs.version }}
8472
fail_on_unmatched_files: true
8573

8674
- uses: fischerscode/tagger@v0
8775
with:
8876
prefix: v
89-
tag: v${{ needs.smoke.outputs.version }}
77+
tag: v${{ github.event.inputs.version }}
9078

9179
- name: Seal Deployment
9280
uses: bobheadxi/deployments@v1

.github/workflows/ci-pre-reqs.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

.github/workflows/ci.action.yml

Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
on:
2+
workflow_call:
3+
pull_request:
4+
paths:
5+
- action.ts
6+
- action.yml
7+
- package.json
8+
9+
concurrency:
10+
group: ${{ github.ref || 'ci' }}/action.ts
11+
cancel-in-progress: true
12+
13+
jobs:
14+
dist:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- run: curl -Ssf https://tea.xyz/$(uname)/$(uname -m).tgz | sudo tar xz -C /usr/local/bin
19+
- run: ./scripts/dist.sh
20+
- uses: actions/upload-artifact@v2
21+
with:
22+
name: dist
23+
path: dist
24+
25+
gha:
26+
needs: dist
27+
runs-on: ${{ matrix.os }}
28+
strategy:
29+
fail-fast: false
30+
matrix:
31+
os:
32+
- macos-latest
33+
- ubuntu-latest
34+
- [self-hosted, macOS, ARM64] # we need to be sure the action
35+
- [self-hosted, linux, ARM64] # works in arm64 environments
36+
prefix:
37+
- null
38+
- /opt
39+
container:
40+
- null
41+
include:
42+
- os: ubuntu-latest
43+
container: debian:buster-slim
44+
srcroot: .
45+
- os: ubuntu-latest
46+
container: debian:buster-slim
47+
srcroot: null
48+
container: ${{ matrix.container }}
49+
steps:
50+
- uses: actions/checkout@v4
51+
- uses: actions/download-artifact@v2
52+
with:
53+
name: dist
54+
path: dist
55+
56+
- uses: ./
57+
id: tea
58+
with:
59+
prefix: ${{ matrix.prefix }}
60+
srcroot: ${{ matrix.srcroot || github.workspace }}
61+
62+
- run: test -n "$VERSION"
63+
- run: test -n "${{ steps.tea.outputs.version }}"
64+
- run: test v$VERSION = v${{ steps.tea.outputs.version }}
65+
- run: tea --env
66+
- run: which tea
67+
- run: node --eval 'console.log(1)'
68+
69+
chaste:
70+
needs: dist
71+
runs-on: ubuntu-latest
72+
container: debian:buster-slim
73+
steps:
74+
- uses: actions/checkout@v4
75+
- uses: actions/download-artifact@v2
76+
with:
77+
name: dist
78+
path: dist
79+
- uses: ./
80+
with:
81+
chaste: true
82+
- run:
83+
if node --version; then
84+
exit 1;
85+
fi
86+
87+
additional-pkgs:
88+
needs: dist
89+
runs-on: ubuntu-latest
90+
steps:
91+
- uses: actions/checkout@v4
92+
- uses: actions/download-artifact@v2
93+
with:
94+
name: dist
95+
path: dist
96+
- uses: ./
97+
with:
98+
+deno.land: ^1.30
99+
# ^^ produces a warning, but we like this syntax
100+
# we're hoping GH allows us to suppress this warning in the future
101+
# discussion: https://github.com/octokit/request-action/issues/26
102+
- run: deno --version
103+
104+
additional-pkgs-2:
105+
needs: dist
106+
runs-on: ubuntu-latest
107+
steps:
108+
- uses: actions/checkout@v4
109+
- uses: actions/download-artifact@v2
110+
with:
111+
name: dist
112+
path: dist
113+
- uses: ./
114+
with:
115+
+: |
116+
deno.land^1.30
117+
cli.github.com
118+
- run: deno --version
119+
- run: gh --version
120+
121+
multiple-apply-is-ok:
122+
runs-on: ubuntu-latest
123+
needs: dist
124+
steps:
125+
- uses: actions/checkout@v4
126+
- uses: actions/download-artifact@v2
127+
with:
128+
name: dist
129+
path: dist
130+
- uses: ./
131+
- run: tea --version
132+
- uses: ./
133+
- run: tea --version

0 commit comments

Comments
 (0)