Skip to content

Update

Update #32275

Workflow file for this run

name: Update
on:
schedule:
- cron: '0 8 * * *'
jobs:
build:
name: Run npm check update and recompile dlls
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.11.0
registry-url: https://registry.npmjs.org
- name: Install npm-check-updates
run: npm install -g npm-check-updates
- name: Update @lastui/rocker
run: |
npm install
ncu -u
npm install
- name: Check if there are changes in @lastui/rocker
id: changes-rocker
run: echo modified=$([ -z "`git diff --exit-code package.json`" ] && echo "false" || echo "true") >> $GITHUB_OUTPUT
- name: Bump version patch @lastui/rocker
if: ${{ (steps.changes-dependencies.outputs.modified == 'true') || (steps.changes-rocker.outputs.modified == 'true') }}
run: npm version patch --no-git-tag-version
- name: Update @lastui/dependencies
working-directory: dependencies
run: |
npm install
ncu -u
npm install
- name: Check if there are changes in @lastui/dependencies
id: changes-dependencies
run: echo modified=$([ -z "`git diff --exit-code dependencies/package.json`" ] && echo "false" || echo "true") >> $GITHUB_OUTPUT
- name: Bump version patch @lastui/dependencies
if: ${{ (steps.changes-dependencies.outputs.modified == 'true') }}
working-directory: dependencies
run: npm version patch --no-git-tag-version
- name: Create PR
if: ${{ (steps.changes-dependencies.outputs.modified == 'true') || (steps.changes-rocker.outputs.modified == 'true') }}
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
delete-branch: true
commit-message: Update dependencies and recompile DLLs
title: Update dependencies
labels: |
dependencies
base: main
branch: update-dependencies