Skip to content

Commit eca5511

Browse files
Adjust other workflows
1 parent 63b7d6f commit eca5511

File tree

5 files changed

+24
-45
lines changed

5 files changed

+24
-45
lines changed

.github/actions/setup-node/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Setup
2-
description: Sets up Node and Build SDK
2+
description: Sets up Node and installs dependencies
33

44
inputs:
55
node-version:

.github/workflows/ci.yml

+13-34
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,37 @@
11
name: Test
22

33
on: [push]
4-
env:
5-
NODE_OPTIONS: --max_old_space_size=4096
64

75
jobs:
86
tsc:
97
runs-on: ubuntu-latest
10-
name: Typescript
8+
name: TypeScript
119
steps:
12-
- uses: actions/checkout@v3
10+
- uses: actions/checkout@v4
1311

14-
- name: 💾 Cache Dependencies
15-
uses: actions/cache@v3
16-
with:
17-
path: ./node_modules
18-
key: ${{ runner.os }}-${{ matrix.node }}-modules-${{ hashFiles('**/yarn.lock') }}
19-
20-
- name: 🔨 Install Dependencies
21-
run: yarn install --frozen-lockfile --ignore-engines --ignore-scripts
12+
- uses: ./.github/actions/setup-node
2213

2314
- name: 🧪 tsc
24-
run: yarn types --noEmit
15+
run: yarn types
2516

2617
test:
2718
runs-on: ubuntu-latest
28-
strategy:
29-
matrix:
30-
node: [22]
31-
name: Test with Node ${{ matrix.node }}
19+
name: Lint & test with Node
3220
steps:
33-
- uses: actions/checkout@v3
34-
- uses: actions/setup-node@v3
35-
with:
36-
node-version: ${{ matrix.node }}
37-
38-
- name: 💾 Cache Dependencies
39-
uses: actions/cache@v3
40-
with:
41-
path: ./node_modules
42-
key: ${{ runner.os }}-${{ matrix.node }}-modules-${{ hashFiles('**/yarn.lock') }}
43-
44-
- name: 🔨 Install Dependencies & Build
45-
run: |
46-
yarn install --frozen-lockfile --ignore-engines
47-
yarn build
21+
- uses: actions/checkout@v4
22+
23+
- uses: ./.github/actions/setup-node
24+
25+
- name: Build SDK
26+
run: yarn build
4827

49-
- name: 🧪 Lint and Test with ${{ matrix.node }}
28+
- name: 🧪 Lint and test with Node ${{ env.NODE_VERSION }}
5029
env:
5130
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
5231
run: |
5332
yarn lint
5433
yarn coverage
5534
yarn validate-translations
5635
57-
- name: 🧪 Validate CommonJS bundle with ${{ matrix.node }}
36+
- name: 🧪 Validate CommonJS bundle with Node ${{ env.NODE_VERSION }}
5837
run: yarn validate-cjs

.github/workflows/pr-check.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@ on:
55
types: [opened, edited, synchronize, reopened]
66

77
jobs:
8-
lint:
8+
pr-title:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: aslafy-z/conventional-pr-title-action@v3
12-
env:
13-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
11+
- uses: actions/checkout@v4
12+
13+
- uses: ./.github/actions/setup-node
14+
15+
- name: commitlint
16+
run: echo "${{ github.event.pull_request.title }}" | npx commitlint --verbose

.github/workflows/release.yml

+2-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
workflow_dispatch:
44
inputs:
55
dry_run:
6-
description: Run package release in "dry run" mode (does not publish either)
6+
description: Run package release in "dry run" mode (does not publish)
77
default: false
88
type: boolean
99

@@ -21,13 +21,10 @@ jobs:
2121

2222
- uses: ./.github/actions/setup-node
2323

24-
- name: Validate CommonJS bundle
25-
run: yarn validate-cjs
26-
2724
- name: Release
2825
env:
2926
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
30-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
GITHUB_TOKEN: ${{ secrets.DOCUSAURUS_GH_TOKEN }}
3128
HUSKY: 0
3229
run: >
3330
yarn semantic-release

.github/workflows/size.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
build:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
1818
- uses: preactjs/compressed-size-action@v2
1919
with:
2020
repo-token: '${{ secrets.GITHUB_TOKEN }}'

0 commit comments

Comments
 (0)