|
6 | 6 | typecheck: |
7 | 7 | runs-on: ubuntu-20.04 |
8 | 8 | steps: |
9 | | - |
10 | | - |
11 | | - - name: Use Node.js |
12 | | - |
13 | | - with: |
14 | | - node-version: 18 |
15 | | - check-latest: true |
16 | | - cache: 'pnpm' |
17 | | - - run: pnpm install |
18 | | - - run: pnpm run build |
19 | | - - run: pnpm tsc --noEmit |
| 9 | + |
| 10 | + |
| 11 | + - name: Use Node.js |
| 12 | + |
| 13 | + with: |
| 14 | + node-version: 18 |
| 15 | + check-latest: true |
| 16 | + cache: 'pnpm' |
| 17 | + - run: pnpm install |
| 18 | + - run: pnpm run build |
| 19 | + - run: pnpm tsc --noEmit |
20 | 20 | lint: |
21 | 21 | runs-on: ubuntu-20.04 |
22 | 22 | steps: |
23 | | - |
24 | | - |
25 | | - - name: Use Node.js |
26 | | - |
27 | | - with: |
28 | | - node-version: 18 |
29 | | - check-latest: true |
30 | | - cache: 'pnpm' |
31 | | - - run: pnpm install |
32 | | - - run: pnpm run build |
33 | | - - run: pnpm run lint |
| 23 | + |
| 24 | + |
| 25 | + - name: Use Node.js |
| 26 | + |
| 27 | + with: |
| 28 | + node-version: 18 |
| 29 | + check-latest: true |
| 30 | + cache: 'pnpm' |
| 31 | + - run: pnpm install |
| 32 | + - run: pnpm run build |
| 33 | + - run: pnpm run lint |
34 | 34 | test: |
35 | 35 | runs-on: ubuntu-20.04 |
36 | 36 | strategy: |
37 | 37 | matrix: |
38 | | - node: ['18' ] |
| 38 | + node: ['18'] |
39 | 39 | steps: |
40 | | - |
41 | | - |
42 | | - - name: Use Node.js |
43 | | - |
44 | | - with: |
45 | | - node-version: ${{ matrix.node }} |
46 | | - check-latest: true |
47 | | - cache: 'pnpm' |
48 | | - - run: pnpm install |
49 | | - - run: pnpm run build |
50 | | - - run: pnpm run test:coverage |
51 | | - |
52 | | - deploy: |
53 | | - runs-on: ubuntu-20.04 |
54 | | - needs: [test] |
55 | | - if: github.ref == 'refs/heads/main' |
56 | | - env: |
57 | | - HUSKY: 0 |
58 | | - steps: |
59 | | - |
60 | | - with: |
61 | | - fetch-depth: "0" |
62 | | - persist-credentials: false |
63 | | - - run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* |
64 | | - - name: Git Identity |
65 | | - run: | |
66 | | - git config --global user.name 'Scaleway Bot' |
67 | | - git config --global user.email '[email protected]' |
68 | | - git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/$GITHUB_REPOSITORY |
69 | | - env: |
70 | | - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} |
71 | | - |
72 | | - - name: Use Node.js |
73 | | - |
74 | | - with: |
75 | | - node-version: 18 |
76 | | - check-latest: true |
77 | | - - run: pnpm install |
78 | | - - run: pnpm run build |
79 | | - - run: echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} > .npmrc |
80 | | - env: |
81 | | - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
82 | | - - run: pnpm lerna publish -y --create-release github --ignore-scripts --no-verify-access |
83 | | - env: |
84 | | - GH_TOKEN: ${{ secrets.GH_TOKEN }} |
| 40 | + |
| 41 | + |
| 42 | + - name: Use Node.js |
| 43 | + |
| 44 | + with: |
| 45 | + node-version: ${{ matrix.node }} |
| 46 | + check-latest: true |
| 47 | + cache: 'pnpm' |
| 48 | + - run: pnpm install |
| 49 | + - run: pnpm run build |
| 50 | + - run: pnpm run test:coverage |
| 51 | + |
0 commit comments