-
-
Notifications
You must be signed in to change notification settings - Fork 10
61 lines (54 loc) · 1.27 KB
/
release.yml
File metadata and controls
61 lines (54 loc) · 1.27 KB
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
name: Release
on:
push:
branches:
- main
permissions:
contents: write
id-token: write
issues: write
pull-requests: write
concurrency:
group: Release
cancel-in-progress: false
jobs:
lint_js:
uses: ./.github/workflows/lint-js.yml
lint_knip:
uses: ./.github/workflows/lint-knip.yml
lint_markdown:
uses: ./.github/workflows/lint-markdown.yml
lint_packages:
uses: ./.github/workflows/lint-packages.yml
lint_spelling:
uses: ./.github/workflows/lint-spelling.yml
test_js:
uses: ./.github/workflows/test-js.yml
test_types:
uses: ./.github/workflows/test-types.yml
type_check:
uses: ./.github/workflows/typecheck.yml
release:
needs:
- lint_js
- lint_knip
- lint_markdown
- lint_packages
- lint_spelling
- test_js
- test_types
- type_check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
fetch-depth: 0
persist-credentials: false
- uses: ./.github/actions/prepare
- name: Build
run: pnpm run build
- name: Release
run: pnpm run release
env:
GITHUB_TOKEN: ${{ github.token }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}