-
Notifications
You must be signed in to change notification settings - Fork 216
54 lines (50 loc) · 1.47 KB
/
shared-changesets-dependencies.yml
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
# 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'
secrets:
githubToken:
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@v4
with:
fetch-depth: 0
token: ${{ secrets.githubToken }}
- 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/[email protected]
with:
preCommit: ${{ inputs.preCommit }}
env:
GITHUB_TOKEN: ${{ secrets.githubToken }}