|
26 | 26 | REACT_APP_BUILD_TARGET: 'extension' |
27 | 27 |
|
28 | 28 | jobs: |
29 | | - install-dependencies: |
30 | | - needs: tag_version |
31 | | - runs-on: ubuntu-latest |
32 | | - steps: |
33 | | - - uses: actions/checkout@v2 |
34 | | - with: |
35 | | - ref: master |
36 | | - - uses: actions/cache@v2 |
37 | | - with: |
38 | | - path: '**/node_modules' |
39 | | - key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} |
40 | | - - name: Install yarn dependencies |
41 | | - run: yarn |
42 | | - - name: Build and zip the extension |
43 | | - run: | |
44 | | - echo version=${{ steps.tag_version.outputs.new_version }} |
45 | | - if [ ${{github.event.inputs.targetStore}} == 'chrome' ] || [ ${{github.event.inputs.targetStore}} == 'all' ]; then |
46 | | - yarn build-chrome |
47 | | - fi |
48 | | - if [ ${{github.event.inputs.targetStore}} == 'firefox' ] || [ ${{github.event.inputs.targetStore}} == 'all' ]; then |
49 | | - yarn build-firefox |
50 | | - fi |
51 | | - |
52 | 29 | tag_version: |
53 | 30 | runs-on: ubuntu-latest |
54 | 31 | steps: |
|
75 | 52 |
|
76 | 53 | chrome-deploy: |
77 | 54 | if: ${{ (github.event.inputs.targetStore == 'chrome') || (github.event.inputs.targetStore == 'all') }} |
78 | | - needs: install-dependencies |
| 55 | + needs: tag_version |
79 | 56 | runs-on: ubuntu-latest |
80 | | - steps: |
| 57 | + steps: |
| 58 | + - uses: actions/checkout@v2 |
| 59 | + with: |
| 60 | + ref: master |
| 61 | + - uses: actions/cache@v2 |
| 62 | + with: |
| 63 | + path: '**/node_modules' |
| 64 | + key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} |
| 65 | + - name: Install yarn dependencies |
| 66 | + run: yarn |
| 67 | + |
| 68 | + - name: Build and zip the extension |
| 69 | + run: yarn build-chrome |
| 70 | + |
81 | 71 | - name: Install chrome dependencies |
82 | 72 | run: yarn global add chrome-webstore-upload-cli |
83 | 73 |
|
|
92 | 82 |
|
93 | 83 | firefox-deploy: |
94 | 84 | if: ${{ (github.event.inputs.targetStore == 'firefox') || (github.event.inputs.targetStore == 'all') }} |
95 | | - needs: install-dependencies |
| 85 | + needs: tag_version |
96 | 86 | runs-on: ubuntu-latest |
97 | 87 | steps: |
| 88 | + - uses: actions/checkout@v2 |
| 89 | + with: |
| 90 | + ref: master |
| 91 | + - uses: actions/cache@v2 |
| 92 | + with: |
| 93 | + path: '**/node_modules' |
| 94 | + key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} |
| 95 | + - name: Install yarn dependencies |
| 96 | + run: yarn |
| 97 | + |
| 98 | + - name: Build and zip the extension |
| 99 | + run: yarn build-firefox |
| 100 | + |
98 | 101 | - name: Install Firefox dependencies |
99 | 102 | run: yarn global add web-ext web-ext-submit@6 |
100 | 103 |
|
|
0 commit comments