|
1 | 1 | name: build |
2 | 2 |
|
3 | 3 | on: |
4 | | - push: |
5 | | - branches: |
6 | | - - master |
7 | | - - beta |
8 | | - pull_request: |
9 | | - branches: |
10 | | - - master |
11 | | - - beta |
12 | | - workflow_dispatch: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - main |
| 7 | + - beta |
| 8 | + pull_request: |
| 9 | + branches: |
| 10 | + - main |
| 11 | + - beta |
| 12 | + workflow_dispatch: |
13 | 13 |
|
14 | 14 | jobs: |
15 | | - test: |
16 | | - timeout-minutes: 10 |
17 | | - runs-on: ubuntu-latest |
18 | | - strategy: |
19 | | - matrix: |
20 | | - node-version: [14, 16, 18] |
21 | | - steps: |
22 | | - - uses: actions/checkout@v3 |
23 | | - with: |
24 | | - fetch-depth: 0 # Required to retrieve git history |
25 | | - - name: Use Node.js ${{ matrix.node-version }} |
26 | | - |
27 | | - with: |
28 | | - node-version: ${{ matrix.node-version }} |
29 | | - cache: "npm" |
30 | | - - name: Install latest npm |
31 | | - run: | |
32 | | - npm i -g npm@8 |
33 | | - - run: npm ci |
34 | | - - name: Lint files |
35 | | - run: npm run lint |
36 | | - - name: Check typing |
37 | | - run: npm run type-check |
38 | | - - name: Run tests |
39 | | - run: npm run test |
40 | | - release: |
41 | | - timeout-minutes: 60 |
42 | | - if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' |
43 | | - runs-on: ubuntu-latest |
44 | | - needs: test |
45 | | - steps: |
46 | | - - uses: actions/checkout@v3 |
47 | | - with: |
48 | | - fetch-depth: 0 # Required to retrieve git history |
49 | | - token: ${{ secrets.GH_TOKEN_SEMANTIC }} |
50 | | - - name: Use Node.js ${{ matrix.node-version }} |
51 | | - |
52 | | - with: |
53 | | - node-version: 14 |
54 | | - cache: "npm" |
55 | | - - name: Install latest npm |
56 | | - run: | |
57 | | - npm i -g npm@8 |
58 | | - - run: npm ci |
59 | | - - name: Build assets |
60 | | - run: npm run build |
61 | | - - name: Release |
62 | | - env: |
63 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
64 | | - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
65 | | - run: npm run semantic-release |
| 15 | + test: |
| 16 | + timeout-minutes: 10 |
| 17 | + runs-on: ubuntu-latest |
| 18 | + strategy: |
| 19 | + matrix: |
| 20 | + node-version: [14, 16, 18] |
| 21 | + steps: |
| 22 | + - uses: actions/checkout@v3 |
| 23 | + with: |
| 24 | + fetch-depth: 0 # Required to retrieve git history |
| 25 | + - name: Use Node.js ${{ matrix.node-version }} |
| 26 | + |
| 27 | + with: |
| 28 | + node-version: ${{ matrix.node-version }} |
| 29 | + cache: 'npm' |
| 30 | + - name: Install latest npm |
| 31 | + run: | |
| 32 | + npm i -g npm@8 |
| 33 | + - run: npm ci |
| 34 | + - name: Lint files |
| 35 | + run: npm run lint |
| 36 | + - name: Check typing |
| 37 | + run: npm run type-check |
| 38 | + - name: Run tests |
| 39 | + run: npm run test |
| 40 | + release: |
| 41 | + timeout-minutes: 60 |
| 42 | + if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' |
| 43 | + runs-on: ubuntu-latest |
| 44 | + needs: test |
| 45 | + steps: |
| 46 | + - uses: actions/checkout@v3 |
| 47 | + with: |
| 48 | + fetch-depth: 0 # Required to retrieve git history |
| 49 | + token: ${{ secrets.GH_TOKEN_SEMANTIC }} |
| 50 | + - name: Use Node.js ${{ matrix.node-version }} |
| 51 | + |
| 52 | + with: |
| 53 | + node-version: 14 |
| 54 | + cache: 'npm' |
| 55 | + - name: Install latest npm |
| 56 | + run: | |
| 57 | + npm i -g npm@8 |
| 58 | + - run: npm ci |
| 59 | + - name: Build assets |
| 60 | + run: npm run build |
| 61 | + - name: Release |
| 62 | + env: |
| 63 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 64 | + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
| 65 | + run: npm run semantic-release |
0 commit comments