Skip to content

Commit 9df6eec

Browse files
committed
ci: update release workflow
1 parent 20f52cc commit 9df6eec

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

.github/workflows/publish-dev.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
for entry in "${PACKAGES[@]}"; do
6868
IFS=":" read -r name path <<< "$entry"
6969
echo "Publishing $name..."
70-
(pnpm --filter="$name" publish --no-git-checks --access public --tag dev && echo "✅ Published $name") || echo "❌ Failed to publish $name"
70+
(pnpm --filter="$name" publish --no-git-checks --provenance --access public --tag dev && echo "✅ Published $name") || echo "❌ Failed to publish $name"
7171
done
7272
7373
- name: Deprecate previous development versions

.github/workflows/publish-latest.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,15 @@ on:
88
required: true
99
type: string
1010

11+
permissions:
12+
id-token: write
13+
contents: read
14+
1115
jobs:
1216
publish:
1317
name: Publish latest builds
1418
runs-on: ubuntu-latest
19+
timeout-minutes: 10
1520
steps:
1621
- uses: pnpm/action-setup@v4
1722
with:
@@ -56,8 +61,6 @@ jobs:
5661
run: pnpm dlx turbo build --filter='./packages/*'
5762

5863
- name: Publish packages
59-
env:
60-
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
6164
run: |
6265
PACKAGES=(
6366
"commandkit:packages/commandkit"

.github/workflows/publish-rc.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
publish:
1313
name: Publish release candidate builds
1414
runs-on: ubuntu-latest
15+
timeout-minutes: 10
1516
steps:
1617
- uses: pnpm/action-setup@v4
1718
with:
@@ -70,6 +71,7 @@ jobs:
7071
"@commandkit/ai:packages/ai"
7172
"@commandkit/queue:packages/queue"
7273
"@commandkit/tasks:packages/tasks"
74+
"@commandkit/workflow:packages/workflow"
7375
)
7476
7577
for entry in "${PACKAGES[@]}"; do
@@ -81,7 +83,7 @@ jobs:
8183
if npm view "$name@$VERSION" version >/dev/null 2>&1; then
8284
echo "📦 $name@$VERSION already exists on npm, skipping..."
8385
else
84-
if pnpm --filter="$name" publish --no-git-checks --access public --tag next; then
86+
if pnpm --filter="$name" publish --no-git-checks --provenance --access public --tag next; then
8587
echo "✅ Published $name@$VERSION under 'next' tag"
8688
else
8789
if npm view "$name@$VERSION" version >/dev/null 2>&1; then
@@ -109,6 +111,7 @@ jobs:
109111
"@commandkit/ai"
110112
"@commandkit/queue"
111113
"@commandkit/tasks"
114+
"@commandkit/workflow"
112115
)
113116
114117
for pkg in "${PACKAGES[@]}"; do

0 commit comments

Comments
 (0)