Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
1b97545
setup cleanup and corepack
enisdenjo Jul 26, 2024
f85874f
shell bash
enisdenjo Jul 26, 2024
fe6a2a6
one or the other
enisdenjo Jul 26, 2024
ef5ff4d
use v1 setup
enisdenjo Jul 26, 2024
3fcc9a8
enable corepack in wd
enisdenjo Jul 26, 2024
777affd
forward setup options from snapshot release
EmrysMyrddin Jul 29, 2024
09819a7
forward setup options from changesets-dependecies
EmrysMyrddin Jul 29, 2024
cd9650e
match inputs and refactor
enisdenjo Jul 29, 2024
ad697a9
ubuntu-latest
enisdenjo Jul 29, 2024
8b03494
install-command for custom install
enisdenjo Jul 29, 2024
6cd84dd
no double quotes
enisdenjo Jul 29, 2024
5e8d9a1
no default buildScript
enisdenjo Oct 23, 2024
2cc5626
cancelling concurrent runs can be done natively
enisdenjo Jan 8, 2025
9b15c7a
Revert "cancelling concurrent runs can be done natively"
enisdenjo Jan 8, 2025
e81df9d
package json in wd needs ./
enisdenjo Jan 9, 2025
db93b8c
check correctly if packageManager field is missing
enisdenjo Jan 9, 2025
2221259
try root pkgmngr if none in workspace
enisdenjo Jan 9, 2025
54efdb8
typo
enisdenjo Jan 9, 2025
b3cfbd6
prefix ./ package.json too
enisdenjo Jan 9, 2025
16ab49f
update changesets-snapshot-action to v0.0.3
enisdenjo Jan 10, 2025
c3547ef
fix: update corepack to latest before enabling it (#696)
EmrysMyrddin Feb 6, 2025
f46b872
Fix deployment URL in action.yml
ardatan Sep 5, 2025
daa6fca
Update action.yml
ardatan Sep 16, 2025
9f66ac2
Update action.yml
ardatan Sep 16, 2025
cdb5a48
Update action.yml
ardatan Sep 16, 2025
9ddcc56
Update action.yml
ardatan Sep 16, 2025
d346956
Update action.yml
ardatan Sep 16, 2025
c9b743b
Add setup step for bun package manager
ardatan Sep 16, 2025
0d30f81
Enable Bun installation in release-snapshot workflow
EmrysMyrddin Jan 16, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,29 @@ on:
preCommit:
type: string
required: false
packageManager:

# must match setup/actions.yml
node-version:
type: string
description: Node.js version to use.
required: false
default: yarn
packageManagerVersion:
node-version-file:
type: string
description: Package manager version
required: false
default: ''
nodeVersion:
description: File containing the version to use.
required: false
working-directory:
type: string
default: '22'
description: Working directory.
required: false
default: .

secrets:
githubToken:
required: true

jobs:
changeset:
runs-on: ubuntu-24.04
runs-on: ubuntu-latest
if: github.event.pull_request.head.repo.full_name == github.repository
steps:
- name: Checkout
Expand All @@ -38,13 +41,13 @@ jobs:
fetch-depth: 0
token: ${{ secrets.githubToken }}

- uses: the-guild-org/shared-config/setup@main
name: setup env and install dependencies
- uses: the-guild-org/shared-config/setup@v1
name: Set up env
if: ${{ inputs.installDependencies }}
with:
nodeVersion: ${{ inputs.nodeVersion }}
packageManager: ${{ inputs.packageManager }}
packageManagerVersion: ${{ inputs.packageManagerVersion }}
node-version: ${{ inputs.node-version }}
node-version-file: ${{ inputs.node-version-file }}
working-directory: ${{ inputs.working-directory }}

- name: Create/Update Changesets
uses: the-guild-org/changesets-dependencies-action@main
Expand Down
23 changes: 6 additions & 17 deletions .github/workflows/ci-node-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,11 @@ on:
nodeVersions:
required: true
type: string
default: '[22]'
packageManager:
type: string
required: false
default: yarn
packageManagerVersion:
type: string
description: Package manager version
required: false
default: ''
default: '[18]'

jobs:
ci_setup:
runs-on: ubuntu-24.04
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.setVariables.outputs.matrix }}
steps:
Expand All @@ -34,7 +25,7 @@ jobs:

ci:
needs: ci_setup
runs-on: ubuntu-24.04
runs-on: ubuntu-latest
strategy:
matrix:
nodeVersion: ${{fromJson(needs.ci_setup.outputs.matrix)}}
Expand All @@ -44,12 +35,10 @@ jobs:
- name: checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- uses: the-guild-org/shared-config/setup@main
name: setup env
- uses: the-guild-org/shared-config/setup@v1
name: set up env
with:
nodeVersion: ${{matrix.nodeVersion }}
packageManager: ${{inputs.packageManager}}
packageManagerVersion: ${{inputs.packageManagerVersion}}
node-version: ${{matrix.nodeVersion }}

- name: ${{ inputs.script }}
run: ${{ inputs.script }}
17 changes: 3 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,18 @@ on:
name:
required: false
type: string
packageManager:
type: string
required: false
default: yarn
packageManagerVersion:
type: string
description: Package manager version
required: false
default: ''
jobs:
ci:
runs-on: ubuntu-24.04
runs-on: ubuntu-latest
name: ${{ inputs.name || 'script' }}
steps:
- name: checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- uses: the-guild-org/shared-config/setup@main
- uses: the-guild-org/shared-config/setup@v1
name: setup env
with:
nodeVersion: ${{inputs.nodeVersion}}
packageManager: ${{inputs.packageManager}}
packageManagerVersion: ${{inputs.packageManagerVersion}}
node-version: ${{inputs.nodeVersion}}

- name: ${{ inputs.script }}
run: ${{ inputs.script }}
41 changes: 25 additions & 16 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,48 @@
on:
workflow_call:
inputs:
nodeVersion:
annotations:
required: false
type: string
default: '22'
packageManager:
type: string
type: boolean
default: true
onlyPrFiles:
required: false
type: boolean
default: true
script:
required: false
default: yarn
packageManagerVersion:
type: string
description: Package manager version
reportFile:
required: false
default: ''
script:
type: string
default: eslint_report.json

# must match setup/actions.yml
node-version:
type: string
description: Node.js version to use.
required: false
node-version-file:
type: string
description: File containing the version to use.
required: false

secrets:
githubToken:
required: false

jobs:
eslint:
runs-on: ubuntu-24.04
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- uses: the-guild-org/shared-config/setup@main
name: setup env
- uses: the-guild-org/shared-config/setup@v1
name: set up env
with:
nodeVersion: ${{inputs.nodeVersion}}
packageManager: ${{inputs.packageManager}}
packageManagerVersion: ${{inputs.packageManagerVersion}}
node-version: ${{ inputs.node-version }}
node-version-file: ${{ inputs.node-version-file }}

- name: lint
run: ${{ inputs.script || 'yarn eslint --output-file eslint_report.json --format json .' }}
Expand Down
48 changes: 27 additions & 21 deletions .github/workflows/release-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,10 @@
on:
workflow_call:
inputs:
packageManager:
type: string
required: false
default: yarn
packageManagerVersion:
description: Package manager version
type: string
required: false
default: ''
nodeVersion:
required: false
type: string
default: '22'
# Changesets inputs
buildScript:
required: false
type: string
default: build
npmTag:
required: false
type: string
Expand All @@ -33,11 +20,26 @@ on:
required: false
type: boolean
default: false

# must match setup/actions.yml
node-version:
type: string
description: Node.js version to use.
required: false
node-version-file:
type: string
description: File containing the version to use.
required: false
bun:
type: boolean
description: Enable it if build requires bun

secrets:
githubToken:
required: true
npmToken:
required: true

outputs:
published:
description: A boolean value to indicate whether a publishing is happened or not
Expand All @@ -50,7 +52,7 @@ on:

jobs:
snapshot:
runs-on: ubuntu-24.04
runs-on: ubuntu-latest
if: github.event.pull_request.head.repo.full_name == github.repository
outputs:
published: ${{ steps.changesets.outputs.published }}
Expand All @@ -62,16 +64,20 @@ jobs:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}

- uses: the-guild-org/shared-config/setup@main
- if: inputs.bun
name: Install Bun
uses: oven-sh/setup-bun@v2

- uses: the-guild-org/shared-config/setup@v1
id: env
name: setup env
with:
nodeVersion: ${{inputs.nodeVersion}}
packageManager: ${{inputs.packageManager}}
packageManagerVersion: ${{inputs.packageManagerVersion}}
node-version: ${{inputs.node-version}}
node-version-file: ${{inputs.node-version-file}}

- if: inputs.exitPre
name: Exit Prerelease Mode
run: ${{inputs.packageManager}} run changeset pre exit
run: ${{steps.env.outputs.package-manager}} run changeset pre exit

- if: inputs.restoreDeletedChangesets
name: restore deleted changesets
Expand All @@ -82,7 +88,7 @@ jobs:
uses: the-guild-org/changesets-snapshot-action@12ae5b6781ea75c36ece2f2e3446cee6dc093e99 # v0.0.3
with:
tag: ${{ inputs.npmTag }}
prepareScript: '${{inputs.packageManager}} run ${{ inputs.buildScript }}'
prepareScript: ${{ inputs.buildScript == '' && '' || format('{0} run {1}', steps.env.outputs.package-manager, inputs.buildScript) }}
env:
NPM_TOKEN: ${{ secrets.npmToken }}
GITHUB_TOKEN: ${{ secrets.githubToken }}
38 changes: 18 additions & 20 deletions .github/workflows/release-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,6 @@
on:
workflow_call:
inputs:
packageManager:
type: string
required: false
default: yarn
packageManagerVersion:
type: string
description: Package manager version
required: false
default: ''
nodeVersion:
required: false
type: string
default: '22'
releaseScript:
required: false
type: string
Expand All @@ -36,6 +23,17 @@ on:
required: false
type: string
default: Upcoming Release Changes

# must match setup/actions.yml
node-version:
type: string
description: Node.js version to use.
required: false
node-version-file:
type: string
description: File containing the version to use.
required: false

secrets:
githubToken:
required: true
Expand All @@ -53,7 +51,7 @@ on:

jobs:
publish:
runs-on: ubuntu-24.04
runs-on: ubuntu-latest
outputs:
published: ${{ steps.changesets.outputs.published }}
publishedPackages: ${{ steps.changesets.outputs.publishedPackages }}
Expand All @@ -64,12 +62,12 @@ jobs:
fetch-depth: 0
token: ${{ secrets.githubToken }}

- uses: the-guild-org/shared-config/setup@main
- uses: the-guild-org/shared-config/setup@v1
id: env
name: setup env
with:
nodeVersion: ${{inputs.nodeVersion}}
packageManager: ${{inputs.packageManager}}
packageManagerVersion: ${{inputs.packageManagerVersion}}
node-version: ${{inputs.node-version}}
node-version-file: ${{inputs.node-version-file}}

- name: set version variables
id: vars
Expand All @@ -82,8 +80,8 @@ jobs:
id: changesets
uses: dotansimha/changesets-action@069996e9be15531bd598272996fa23853d61590e # v1.5.2
with:
publish: '${{inputs.packageManager}} ${{ inputs.releaseScript }}'
version: '${{inputs.packageManager}} ${{inputs.versionScript}}'
publish: '${{steps.env.outputs.package-manager}} ${{ inputs.releaseScript }}'
version: '${{steps.env.outputs.package-manager}} ${{inputs.versionScript}}'
commit: 'chore(release): update monorepo packages versions'
title: ${{inputs.releasePrName}}
createGithubReleases: ${{ inputs.createGithubReleases }}
Expand Down
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,13 +303,12 @@ jobs:
test:
name: myScript
steps:
- name: Checkout
- name: checkout
uses: actions/checkout@v3

- uses: the-guild-org/shared-config/setup@main
name: setup env
- uses: the-guild-org/shared-config/setup@v1
name: set up env
with:
nodeVersion: 22
node-version-file: .node-version
```

</details>
Expand Down
Loading