44 workflow_dispatch :
55 inputs :
66 version :
7- description : " Version number (e.g. v1.2.3)"
7+ description : ' Version number (e.g. v1.2.3)'
88 required : true
9- default : " v0.0.0"
9+ default : ' v0.0.0'
1010 release :
1111 types : [prereleased]
1212
@@ -20,37 +20,55 @@ jobs:
2020 CSC_KEY_PASSWORD : ${{ secrets.CSC_KEY_PASSWORD }}
2121 AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
2222 AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
23+ NODE_GYP_FORCE_PYTHON : ${{ env.pythonLocation }}/bin/python
2324
2425 steps :
2526 - name : Checkout code
2627 uses : actions/checkout@v4
2728
28- - name : Set up Node.js
29+ - name : Set up Python 3.11 (needed by node-gyp < 10)
30+ id : setup-python
31+ uses : actions/setup-python@v5
32+ with :
33+ python-version : ' 3.11'
34+
35+ - name : Export pythonLocation to env
36+ run : echo "pythonLocation=${{ steps.setup-python.outputs.python-path }}" >> "$GITHUB_ENV"
37+
38+ - name : Set up Node.js 20
2939 uses : actions/setup-node@v4
3040 with :
31- node-version : " 20 "
41+ node-version : ' 20 '
3242
33- - name : Install pnpm
43+ - name : Install pnpm 8 (lockfile-compatible)
3444 uses : pnpm/action-setup@v2
3545 with :
3646 version : 8
47+ run_install : false
3748
38- - name : Set up Go
49+ - name : Show key toolchain versions
50+ run : |
51+ echo "Python $(python -V)"
52+ echo "Node $(node -v)"
53+ echo "pnpm $(pnpm -v)"
54+ npx --yes node-gyp --version || true
55+
56+ - name : Set up Go 1.24.2
3957 uses : actions/setup-go@v4
4058 with :
41- go-version : " 1.24.2"
59+ go-version : ' 1.24.2'
4260
4361 - name : Check secrets are injected
4462 env :
4563 COMPLETIONS_API_KEY : ${{ secrets.COMPLETIONS_API_KEY }}
4664 EMBEDDINGS_API_KEY : ${{ secrets.EMBEDDINGS_API_KEY }}
4765 run : |
4866 echo "COMPLETIONS_API_KEY length: ${#COMPLETIONS_API_KEY}"
49- echo "EMBEDDINGS_API_KEY length: ${#EMBEDDINGS_API_KEY}"
67+ echo "EMBEDDINGS_API_KEY length: ${#EMBEDDINGS_API_KEY}"
5068
5169 - name : Install dependencies
5270 working-directory : app
53- run : pnpm install
71+ run : pnpm install --frozen-lockfile
5472
5573 - name : Write Apple API key (.p8) to disk
5674 run : |
6987 VERSION="${{ github.event.inputs.version }}"
7088 fi
7189 VERSION_NUMBER="${VERSION#v}"
72- # Update version in package.json
7390 jq ".version = \"$VERSION_NUMBER\"" package.json > package.json.tmp
7491 mv package.json.tmp package.json
7592 echo "Updated package.json version to $VERSION_NUMBER"
@@ -109,14 +126,13 @@ jobs:
109126 VITE_DISABLE_TASKS : " false"
110127 VITE_DISABLE_CONNECTORS : " false"
111128 VITE_DISABLE_VOICE : " false"
112-
113129 run : make build-dev-mac-silicon
114130
115131 - name : Create dev release
116132 uses : softprops/action-gh-release@v1
117133 with :
118134 tag_name : ${{ github.event_name == 'release' && github.event.release.tag_name || github.event.inputs.version }}
119- name : " Dev Release"
135+ name : ' Dev Release'
120136 body : |
121137 ## Dev Release
122138 Triggered by: `${{ github.event_name }}`
0 commit comments