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

49 lines
1.2 KiB
YAML
Raw Normal View History

2022-12-29 01:52:43 -05:00
name: Changesets
on:
2023-04-02 04:05:18 -05:00
push:
branches:
- master
2022-12-29 01:52:43 -05:00
concurrency:
2023-01-18 22:22:17 -05:00
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
2022-12-29 01:52:43 -05:00
jobs:
changesets:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
2022-12-29 01:52:43 -05:00
with:
token: ${{ secrets.BOT_PAT }}
- name: Setup Node and pnpm
uses: silverhand-io/actions-node-pnpm-run-steps@v4
with:
pnpm-version: 9
2022-12-29 01:52:43 -05:00
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6
2022-12-29 01:52:43 -05:00
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: Create pull request
2023-04-02 04:05:18 -05:00
if: github.event_name == 'push'
uses: changesets/action@v1
2022-12-29 01:52:43 -05:00
with:
2023-04-17 09:18:47 -05:00
version: node .scripts/version.js
setupGitUser: false
commit: 'release: version packages'
2023-04-02 04:05:18 -05:00
title: 'release: version packages'
env:
GITHUB_TOKEN: ${{ secrets.BOT_PAT }}