Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
10 changes: 0 additions & 10 deletions .github/actions/setup-publish/action.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,9 @@
name: Setup publish
description: Setup steps for publishing packages

inputs:
branch:
required: true

runs:
using: 'composite'
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ inputs.branch }}

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
Expand Down
15 changes: 11 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,13 @@ jobs:
id-token: write # OIDC for provenance if npm publish happens here
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup publish
uses: ./.github/actions/setup-publish
with:
branch: ${{ github.ref_name }}

# This action creates a release pull request with all of
# the package versions and changelogs updated. When there
Expand Down Expand Up @@ -112,10 +115,14 @@ jobs:
id-token: write # OIDC for provenance when npm publish happens
runs-on: ubuntu-latest
steps:
# Checkout the branch selected when triggering the workflow
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup publish
uses: ./.github/actions/setup-publish
with:
branch: ${{ github.ref_name }}

- name: Version packages for snapshot
run: pnpm changeset version --snapshot ${{ inputs.snapshot_tag }}
Expand Down
Loading