-
Notifications
You must be signed in to change notification settings - Fork 232
Expand file tree
/
Copy pathshared-changesets-dependencies.yml
More file actions
78 lines (73 loc) · 2.15 KB
/
shared-changesets-dependencies.yml
File metadata and controls
78 lines (73 loc) · 2.15 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Note: this is a shared pipeline used by other repositories.
# Docs: https://docs.github.com/en/actions/using-workflows/reusing-workflows
on:
workflow_call:
inputs:
installDependencies:
type: boolean
default: false
preCommit:
type: string
required: false
packageManager:
type: string
required: false
default: yarn
packageManagerVersion:
type: string
description: Package manager version
required: false
default: ''
nodeVersion:
required: false
type: string
default: '20'
gitUserEmail:
required: false
type: string
default: ''
gitUserName:
required: false
type: string
default: ''
secrets:
githubToken:
required: true
pgpPrivateKey:
required: true
pgpPassphrase:
required: true
jobs:
changeset:
runs-on: ubuntu-24.04
if: github.event.pull_request.head.repo.full_name == github.repository
steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 0
token: ${{ github.token }}
- name: Import bot's GPG key for signing commits
id: import-gpg
uses: crazy-max/ghaction-import-gpg@v7
with:
gpg_private_key: ${{ secrets.pgpPrivateKey }}
passphrase: ${{ secrets.pgpPassphrase }}
git_config_global: true
git_user_signingkey: true
git_commit_gpgsign: true
- uses: ./.github/actions/setup-node
name: setup env and install dependencies
if: ${{ inputs.installDependencies }}
with:
nodeVersion: ${{ inputs.nodeVersion }}
packageManager: ${{ inputs.packageManager }}
packageManagerVersion: ${{ inputs.packageManagerVersion }}
- name: Create/Update Changesets
uses: pinax-network/changesets-dependencies-action@v1.3.0
with:
preCommit: ${{ inputs.preCommit }}
gitUserEmail: ${{ inputs.gitUserEmail }}
gitUserName: ${{ inputs.gitUserName }}
env:
GITHUB_TOKEN: ${{ secrets.githubToken }}