Skip to content

Commit ea3cb68

Browse files
committed
chore: switch to manual trigger
1 parent 3fcfb27 commit ea3cb68

2 files changed

Lines changed: 17 additions & 45 deletions

File tree

‎.github/workflows/electron-passkeys.yml‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
name: Electron Passkeys Native Build
22

33
on:
4-
workflow_call:
54
workflow_dispatch:
6-
pull_request:
7-
paths:
8-
- 'packages/electron-passkeys/**'
9-
- '.github/workflows/electron-passkeys.yml'
105

116
permissions:
127
contents: read
@@ -111,3 +106,4 @@ jobs:
111106
name: electron-passkeys-npm
112107
path: packages/electron-passkeys/npm/**/*.node
113108
if-no-files-found: error
109+
retention-days: 90

‎.github/workflows/release.yml‎

Lines changed: 16 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -20,51 +20,16 @@ concurrency:
2020
cancel-in-progress: true
2121

2222
jobs:
23-
detect-native:
24-
name: Detect electron-passkeys publish
25-
if: ${{ github.event_name == 'push' && github.repository == 'clerk/javascript' }}
26-
runs-on: ${{ vars.RUNNER_NORMAL || 'ubuntu-latest' }}
27-
timeout-minutes: 5
28-
permissions:
29-
contents: read
30-
outputs:
31-
should-build: ${{ steps.detect.outputs.should-build }}
32-
steps:
33-
- name: Checkout repo
34-
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
35-
with:
36-
persist-credentials: false
37-
fetch-depth: 1
38-
fetch-tags: false
39-
filter: 'blob:none'
40-
show-progress: false
41-
42-
- name: Determine whether electron-passkeys is about to publish
43-
id: detect
44-
run: node scripts/detect-electron-passkeys-publish.mjs >> "$GITHUB_OUTPUT"
45-
46-
build-native:
47-
name: Build electron-passkeys native binaries
48-
needs: detect-native
49-
if: ${{ needs.detect-native.outputs.should-build == 'true' }}
50-
permissions:
51-
contents: read
52-
uses: ./.github/workflows/electron-passkeys.yml
53-
5423
release:
5524
name: Release
56-
needs: [detect-native, build-native]
5725
if: >-
58-
always()
59-
&& github.event_name == 'push'
26+
github.event_name == 'push'
6027
&& github.repository == 'clerk/javascript'
61-
&& needs.detect-native.result == 'success'
62-
&& needs.build-native.result != 'failure'
63-
&& needs.build-native.result != 'cancelled'
6428
runs-on: ${{ vars.RUNNER_NORMAL || 'ubuntu-latest' }}
6529
timeout-minutes: ${{ vars.TIMEOUT_MINUTES_NORMAL && fromJSON(vars.TIMEOUT_MINUTES_NORMAL) || 10 }}
6630

6731
permissions:
32+
actions: read
6833
contents: write
6934
id-token: write
7035
packages: write
@@ -102,18 +67,29 @@ jobs:
10267
- name: Upgrade npm for trusted publishing
10368
run: npx npm@11 install -g npm@11
10469

70+
- name: Determine whether electron-passkeys is about to publish
71+
id: detect-native
72+
run: node scripts/detect-electron-passkeys-publish.mjs >> "$GITHUB_OUTPUT"
73+
10574
- name: Build release
10675
run: pnpm turbo build $TURBO_ARGS --force
10776

10877
- name: Download electron-passkeys native binaries
109-
if: ${{ needs.detect-native.outputs.should-build == 'true' }}
110-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
78+
if: ${{ steps.detect-native.outputs.should-build == 'true' }}
79+
uses: dawidd6/action-download-artifact@b6e2e70617bc3265edd6dab6c906732b2f1ae151 # v21
11180
with:
81+
github_token: ${{ github.token }}
82+
workflow: electron-passkeys.yml
11283
name: electron-passkeys-npm
11384
path: packages/electron-passkeys/npm
85+
branch: ${{ github.ref_name }}
86+
event: workflow_dispatch
87+
workflow_conclusion: success
88+
search_artifacts: true
89+
allow_forks: false
11490

11591
- name: Verify electron-passkeys binaries are present
116-
if: ${{ needs.detect-native.outputs.should-build == 'true' }}
92+
if: ${{ steps.detect-native.outputs.should-build == 'true' }}
11793
run: node scripts/check-electron-passkeys-binaries.mjs packages/electron-passkeys/npm
11894

11995
- name: Create Release PR

0 commit comments

Comments
 (0)