Skip to content

update Angular version #17

update Angular version

update Angular version #17

Workflow file for this run

name: update Angular version
on:
workflow_dispatch:
inputs:
version:
description: 'New angular version'
required: true
jobs:
update_and_push:
runs-on: ubuntu-latest
strategy:
fail-fast: true
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GH_PERSONAL_TOKEN }}
fetch-depth: 0
- uses: actions/cache@v3
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ~/.cache # Default cache directory for both Yarn and Cypress
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: yarn --immutable
- name: Set Git credentials
run: |
git config --global user.name ${{ secrets.GIT_USER }}
git config --global user.email ${{ secrets.GIT_EMAIL }}
- name: Update examples
run: yarn update:examples ${{ github.event.inputs.version }}
- name: Update builders
run: yarn update:packages ${{ github.event.inputs.version }}
- name: Install updated dependencies
run: yarn
- name: Commit updates
run: |
git add . && git commit -m "chore: update dependencies"
- name: Push the changes
run: git push