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
|
|
|
pull_request:
|
|
|
|
|
|
|
|
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@v3
|
|
|
|
with:
|
|
|
|
token: ${{ secrets.BOT_PAT }}
|
|
|
|
|
|
|
|
- name: Setup Node and pnpm
|
2023-03-30 05:51:20 -05:00
|
|
|
uses: silverhand-io/actions-node-pnpm-run-steps@v3
|
2022-12-29 01:52:43 -05:00
|
|
|
|
|
|
|
- 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: |
|
2023-04-02 04:05:18 -05:00
|
|
|
node .scripts/version.js
|
2022-12-29 01:52:43 -05:00
|
|
|
pnpm i --no-frozen-lockfile
|
|
|
|
git status
|
|
|
|
|
|
|
|
- name: Create pull request
|
2023-04-02 04:05:18 -05:00
|
|
|
if: github.event_name == 'push'
|
2023-04-06 12:00:28 -05:00
|
|
|
uses: peter-evans/create-pull-request@v5
|
2022-12-29 01:52:43 -05:00
|
|
|
with:
|
|
|
|
token: ${{ secrets.BOT_PAT }}
|
2023-04-02 04:05:18 -05:00
|
|
|
commit-message: 'release: version packages'
|
2022-12-29 01:52:43 -05:00
|
|
|
committer: silverhand-bot <bot@silverhand.io>
|
|
|
|
author: silverhand-bot <bot@silverhand.io>
|
|
|
|
base: master
|
2023-04-02 04:05:18 -05:00
|
|
|
branch: release/version-packages
|
|
|
|
title: 'release: version packages'
|