Bump dependencies #200
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: Bump dependencies | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: 45 11 * * * # 60 min before Dependabot | |
push: | |
paths: | |
- package.json | |
- package-lock.json | |
- .github/workflows/bump.yml | |
branches: | |
- main | |
permissions: write-all | |
jobs: | |
bump: | |
name: Bump | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4.1.7 | |
- name: Setup Node.JS | |
uses: actions/setup-node@v4.0.3 | |
with: | |
node-version: 20.6.0 | |
cache: npm | |
- name: Bump Twemoji | |
run: | |
npm pkg set dependencies.@twemoji/parser="<=$(npm show @discordapp/twemoji | |
version)" | |
- name: Bump | |
id: sync_types | |
uses: cobaltt7/sync-types@v2.1.1 | |
- name: Commit | |
id: commit | |
uses: peter-evans/create-pull-request@v6.1.0 | |
with: | |
token: ${{ secrets.TOKEN }} | |
author: | |
github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | |
commit-message: Bump dependencies | |
branch: ci-bump-dependencies | |
delete-branch: true | |
title: Bump dependencies | |
body-path: ${{ steps.sync_types.outputs.output-dir }}/output.md |