chore(🦋📦): publish packages #231
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: Create Renovate Changeset | |
'on': | |
merge_group: | |
pull_request_target: | |
jobs: | |
create-changeset: | |
name: Create Renovate Changeset | |
runs-on: ubuntu-latest | |
if: github.repository == 'bfra-me/works' && ( github.actor == 'bfra-me[bot]' || github.actor == 'renovate[bot]' ) | |
steps: | |
- id: get-workflow-access-token | |
name: Get Workflow Access Token | |
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0 | |
with: | |
app-id: ${{ secrets.APPLICATION_ID }} | |
private-key: ${{ secrets.APPLICATION_PRIVATE_KEY }} | |
- name: Setup Git user | |
run: | | |
git config --global user.email '118100583+bfra-me[bot]@users.noreply.github.com' | |
git config --global user.name 'bfra-me[bot]' | |
- name: Checkout repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 2 | |
ref: ${{ github.head_ref }} | |
token: ${{ steps.get-workflow-access-token.outputs.token }} | |
- name: Setup pnpm | |
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0 | |
- id: filter | |
name: | |
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2 | |
with: | |
filters: | | |
changes: | |
- '.github/workflows/renovate-changeset.yaml' | |
- '**/package.json' | |
- '**/pnpm-lock.yaml' | |
- name: Run changesets-renovate | |
if: steps.filter.outputs.changes == 'true' | |
run: pnpx @scaleway/changesets-renovate |