-
Notifications
You must be signed in to change notification settings - Fork 0
84 lines (77 loc) · 2 KB
/
main.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: main
on:
push:
branches: [main]
jobs:
lint:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/setup
- uses: actions/setup-python@v5
with:
python-version: 3.12
- run: just install
- uses: pre-commit/[email protected]
docs-publish:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/setup
- run: just install
- run: just docs-build
- uses: actions/upload-pages-artifact@v3
with:
path: docs
docs-deploy:
runs-on: ubuntu-24.04
needs: docs-publish
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4
ts-standard-test-cov:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/setup
- run: just ts-standard-install
- run: just ts-standard-type-check
ts-standard-type-check:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/setup
- run: just ts-standard-install
- run: just ts-standard-test-cov
libs-publish:
runs-on: ubuntu-24.04
needs:
- lint
- ts-standard-type-check
- ts-standard-test-cov
permissions:
contents: write
packages: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/setup
- run: just ts-standard-install
- run: |
cat << EOF > "$HOME/.npmrc"
@jacksonneal:registry=https://npm.pkg.github.com/
//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN
EOF
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: changesets/action@v1
with:
publish: pnpm publish -r
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}