chore(deps): update dependencies #424
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: Add changeset to Renovate updates | |
on: | |
merge_group: | |
pull_request_target: | |
paths: | |
- '.github/workflows/changesets-renovate.yml' | |
- '**/pnpm-lock.yaml' | |
- '**/package.json' | |
env: | |
GITHUB_TOKEN: ${{ secrets.BOT_PAT_TOKEN }} | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
SSH_PUBLIC_KEY: ${{ secrets.BOT_SSH_PUBLIC_KEY }} | |
SSH_PRIVATE_KEY: ${{ secrets.BOT_SSH_PRIVATE_KEY }} | |
GIT_COMMITTER_NAME: 'Julien Papini [bot]' | |
GIT_COMMITTER_EMAIL: '[email protected]' | |
jobs: | |
generate-changesets: | |
name: Generate changesets | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
if: github.actor == 'renovate[bot]' | |
steps: | |
- name: Setup Git and SSH | |
run: | | |
mkdir ~/.ssh | |
echo -e "$SSH_PRIVATE_KEY" >> ~/.ssh/signing_key | |
chmod 600 ~/.ssh/signing_key | |
echo -e "$SSH_PUBLIC_KEY" >> ~/.ssh/signing_key.pub | |
chmod 600 ~/.ssh/signing_key.pub | |
echo "$GIT_COMMITTER_EMAIL $SSH_PUBLIC_KEY" > ~/.ssh/allowed_signers | |
eval `ssh-agent -s` | |
ssh-add ~/.ssh/signing_key | |
git config --global user.name "$GIT_COMMITTER_NAME" | |
git config --global user.email "$GIT_COMMITTER_EMAIL" | |
git config --global gpg.format ssh | |
git config --global user.signingkey ~/.ssh/signing_key | |
git config --global gpg.ssh.allowedSignersFile ~/.ssh/allowed_signers | |
git config --global commit.gpgSign true | |
git config --global tag.gpgSign true | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
ssh-key: ${{ env.SSH_PRIVATE_KEY }} | |
fetch-depth: 2 | |
ref: ${{ github.head_ref }} | |
- name: Setup PNPM | |
uses: pnpm/action-setup@v4 | |
- name: Run changesets-renovate | |
run: pnpm dlx @scaleway/changesets-renovate |