Repository navigation
47 lines (47 loc) 路 1.62 KB
/
Copy pathbump.yml
File metadata and controls
47 lines (47 loc) 路 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Bump
on:
push:
branches:
- canary
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
bump:
timeout-minutes: 30
runs-on: depot-ubuntu-22.04-2
permissions:
contents: write
pull-requests: write
container:
image: node:24
steps:
- name: Generate GitHub App token
id: app-token
uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349
with:
app-id: ${{ secrets.BOT_APP_ID }}
private-key: ${{ secrets.BOT_APP_PRIVATE_KEY }}
permission-contents: write
permission-pull-requests: write
- name: Checkout Repo
uses: actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98
with:
fetch-depth: 1
token: ${{ steps.app-token.outputs.token }}
- run: git config --global --add safe.directory $GITHUB_WORKSPACE
- name: pnpm setup
uses: pnpm/action-setup@738f428026a1f5a72398de22aeed83d859c4a660
- name: Install packages
run: pnpm install --frozen-lockfile --prefer-offline
- name: Configure version bump git user
run: |
git config user.name "resend-version-bump[bot]"
git config user.email "277115511+resend-version-bump[bot]@users.noreply.github.com"
- name: Create "version packages" pull request
uses: changesets/action@6a0a831ff30acef54f2c6aa1cbbc1096b066edaf
with:
version: pnpm run version
title: "chore(root): version packages"
commitMode: git-cli
setupGitUser: false
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}