Release/2.9.2 #1551
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Preview Publish" | |
on: | |
push: | |
branches: [main, develop] | |
env: | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
jobs: | |
install: | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Cache builder node modules & Turbo building | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-builder-node-modules | |
with: | |
path: | | |
node_modules | |
~/Library/Caches/Cypress | |
key: ${{ runner.os }}-builder-${{ hashFiles('pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-builder-${{ hashFiles('pnpm-lock.yaml') }} | |
- name: Check builder Install/Build Cache | |
run: ls -lah node_modules | head -5 | |
- name: Install Dependencies | |
if: steps.cache-builder-node-modules.outputs.cache-hit != 'true' | |
run: pnpm install | |
build: | |
needs: | |
- install | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
node-version: [16.x] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
fetch-depth: 0 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Cache node modules & Turbo building | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-builder-node-modules | |
with: | |
path: | | |
node_modules | |
~/Library/Caches/Cypress | |
key: ${{ runner.os }}-builder-${{ hashFiles('pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-builder-${{ hashFiles('pnpm-lock.yaml') }} | |
- name: Publish docker image | |
run: echo "Publishing docker image..." |