|
8 | 8 | if: "!github.event.release.prerelease"
|
9 | 9 | name: Publish Release
|
10 | 10 | runs-on: ubuntu-18.04
|
| 11 | + strategy: |
| 12 | + matrix: |
| 13 | + node-version: [12.14.1] |
11 | 14 | steps:
|
12 | 15 | - name: Checkout
|
13 | 16 | uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
|
14 |
| - - name: Setup Node.js |
| 17 | + - name: Setup Node.js ${{ matrix.node-version }} |
15 | 18 | uses: actions/setup-node@46071b5c7a2e0c34e49c3cb8a0e792e86e18d5ea
|
16 | 19 | with:
|
17 |
| - node-version: '12.14.1' |
| 20 | + node-version: ${{ matrix.node-version }} |
18 | 21 | registry-url: 'https://registry.npmjs.org'
|
19 |
| - - name: Get yarn cache directory path |
20 |
| - id: yarn-cache-dir-path |
21 |
| - run: echo "::set-output name=dir::$(yarn cache dir)" |
22 |
| - - uses: actions/cache@70655ec8323daeeaa7ef06d7c56e1b9191396cbe |
23 |
| - id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) |
24 |
| - with: |
25 |
| - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} |
26 |
| - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} |
27 |
| - restore-keys: | |
28 |
| - ${{ runner.os }}-yarn- |
29 | 22 | - name: Install
|
30 | 23 | run: |
|
31 | 24 | yarn --frozen-lockfile
|
@@ -68,24 +61,17 @@ jobs:
|
68 | 61 | if: "github.event.release.prerelease"
|
69 | 62 | name: Publish RC
|
70 | 63 | runs-on: ubuntu-16.04
|
| 64 | + strategy: |
| 65 | + matrix: |
| 66 | + node-version: [12.14.1] |
71 | 67 | steps:
|
72 | 68 | - name: Checkout
|
73 | 69 | uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
|
74 |
| - - name: Setup Node.js |
| 70 | + - name: Setup Node.js ${{ matrix.node-version }} |
75 | 71 | uses: actions/setup-node@46071b5c7a2e0c34e49c3cb8a0e792e86e18d5ea
|
76 | 72 | with:
|
77 |
| - node-version: '12.14.1' |
| 73 | + node-version: ${{ matrix.node-version }} |
78 | 74 | registry-url: 'https://registry.npmjs.org'
|
79 |
| - - name: Get yarn cache directory path |
80 |
| - id: yarn-cache-dir-path |
81 |
| - run: echo "::set-output name=dir::$(yarn cache dir)" |
82 |
| - - uses: actions/cache@70655ec8323daeeaa7ef06d7c56e1b9191396cbe |
83 |
| - id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) |
84 |
| - with: |
85 |
| - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} |
86 |
| - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} |
87 |
| - restore-keys: | |
88 |
| - ${{ runner.os }}-yarn- |
89 | 75 | - name: Install
|
90 | 76 | run: |
|
91 | 77 | yarn --frozen-lockfile
|
|
0 commit comments