Bump rollup from 4.22.4 to 4.22.5 (#431) #86
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: Deploy Templates to GAM | |
permissions: | |
contents: read | |
concurrency: | |
group: 'deploy' | |
cancel-in-progress: true | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
lint: | |
name: Linting | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/[email protected] | |
# Temporarily force newer version of corepack | |
# See https://github.com/guardian/support-service-lambdas/pull/2666 | |
- run: npm install --global [email protected] | |
- run: corepack enable | |
shell: bash | |
- name: Setup Node | |
uses: actions/[email protected] | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
shell: bash | |
- name: Lint files | |
run: pnpm lint | |
types: | |
name: Typescript | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/[email protected] | |
# Temporarily force newer version of corepack | |
# See https://github.com/guardian/support-service-lambdas/pull/2666 | |
- run: npm install --global [email protected] | |
- run: corepack enable | |
shell: bash | |
- name: Setup Node | |
uses: actions/[email protected] | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
shell: bash | |
- name: Check typescript | |
run: pnpm tsc | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
needs: [lint, types] | |
steps: | |
- uses: actions/[email protected] | |
- name: Setup Python | |
uses: actions/[email protected] | |
with: | |
python-version: '3.11' | |
- name: Install pipenv | |
run: pip install pipenv | |
# Temporarily force newer version of corepack | |
# See https://github.com/guardian/support-service-lambdas/pull/2666 | |
- run: npm install --global [email protected] | |
- run: corepack enable | |
shell: bash | |
- name: Setup Node | |
uses: actions/[email protected] | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
shell: bash | |
- name: Build | |
run: pnpm build | |
- name: Install Dependencies | |
run: pipenv install | |
working-directory: ./scripts/deploy | |
- name: Deploy Templates to GAM | |
run: pipenv run python deploy.py | |
working-directory: ./scripts/deploy | |
env: | |
GAM_APPLICATION_NAME: ${{ secrets.GAM_APPLICATION_NAME }} | |
GAM_NETWORK_CODE: ${{ secrets.GAM_NETWORK_CODE }} | |
SERVICE_ACCOUNT_KEY_FILE: ${{ secrets.SERVICE_ACCOUNT_KEY_FILE }} | |
deploy-legacy: | |
name: Deploy Legacy | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./legacy | |
steps: | |
- uses: actions/[email protected] | |
- name: Setup Python | |
uses: actions/[email protected] | |
with: | |
python-version: '3.11' | |
- name: Install pipenv | |
run: pip install pipenv | |
- run: corepack enable | |
shell: bash | |
working-directory: ./legacy | |
- name: Setup Node (Legacy) | |
uses: actions/[email protected] | |
with: | |
node-version-file: './legacy/.nvmrc' | |
cache: 'npm' | |
cache-dependency-path: './legacy/package-lock.json' | |
- name: Install dependencies | |
run: npm install --frozen-lockfile | |
working-directory: ./legacy | |
shell: bash | |
- name: Build | |
run: npm run build | |
working-directory: ./legacy | |
- name: Install Dependencies | |
run: pipenv install | |
working-directory: ./scripts/deploy | |
- name: Deploy Templates to GAM | |
run: pipenv run python deploy.py --legacy | |
working-directory: ./scripts/deploy | |
env: | |
GAM_APPLICATION_NAME: ${{ secrets.GAM_APPLICATION_NAME }} | |
GAM_NETWORK_CODE: ${{ secrets.GAM_NETWORK_CODE }} | |
SERVICE_ACCOUNT_KEY_FILE: ${{ secrets.SERVICE_ACCOUNT_KEY_FILE }} |