0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00
logto/.github/workflows/changesets.yml
renovate[bot] e19860c1a6
chore(deps): update peter-evans/create-pull-request action to v5 (#3677)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-07 01:00:28 +08:00

54 lines
1.4 KiB
YAML

name: Changesets
on:
push:
branches:
- master
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
jobs:
changesets:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.BOT_PAT }}
- name: Setup Node and pnpm
uses: silverhand-io/actions-node-pnpm-run-steps@v3
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v5
with:
gpg_private_key: ${{ secrets.BOT_GPG_KEY }}
passphrase: ${{ secrets.BOT_GPG_PASSPHRASE }}
git_user_signingkey: true
git_commit_gpgsign: true
git_tag_gpgsign: true
- name: Configure Git user
run: |
git config --global user.email bot@silverhand.io
git config --global user.name silverhand-bot
- name: Version packages
run: |
node .scripts/version.js
pnpm i --no-frozen-lockfile
git status
- name: Create pull request
if: github.event_name == 'push'
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.BOT_PAT }}
commit-message: 'release: version packages'
committer: silverhand-bot <bot@silverhand.io>
author: silverhand-bot <bot@silverhand.io>
base: master
branch: release/version-packages
title: 'release: version packages'