handle case when spreadsheet URL has parameters #264
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: DV360 Build | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
build-dv360: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set bash to strict mode | |
run: set -euox pipefail | |
- name: Set Node.js 22.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 22.x | |
- name: Install yarn | |
run: npm -g install yarn | |
- name: Install parent dependencies | |
run: npx yarn --cwd ts | |
- name: Install DV360 dependencies | |
run: npx yarn --cwd ./ts/dv360 | |
- name: Build dv360 prod | |
run: npx yarn --cwd ./ts/dv360 build:prod | |
- name: Build dv360 dev | |
run: npx yarn --cwd ./ts/dv360 build:dev | |
- name: Ensure clasp is installed (for yarn push) | |
run: npx yarn check-deps | |
- name: Print errors | |
run: find . -name "*.warn" -type f -exec cat {} \; | |
- name: Fail on errors | |
if: ${{ steps.build-dv360.outputs.error || steps.build-dev-dv360.outputs.error }} | |
run: exit 1 |