-
Notifications
You must be signed in to change notification settings - Fork 37
51 lines (42 loc) · 1.38 KB
/
build-mac-x64.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Build mac x64
on:
workflow_dispatch:
env:
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
GH_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
RUDDERSTACK_CLIENT_ID: ${{ secrets.RUDDERSTACK_CLIENT_ID }}
jobs:
release-mac-x64:
runs-on: macos-13
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
- uses: pnpm/action-setup@v3
with:
standalone: ${{ runner.os == 'Windows' }}
- name: Install node-gyp
run: pnpm add --global node-gyp
shell: bash
- name: install python setuptools
run: pip3 install setuptools
shell: bash
- name: Reconfigure git to use HTTP authentication
run: >
git config --global url."https://github.com/".insteadOf
ssh://git@github.com/
- name: Authenticate with private NPM package
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
- name: Install dependencies
run: pnpm run setup
- name: setup env production file
run: |
echo "VITE_LD_ENVIRONMENT_ID=${{ secrets.VITE_LD_ENVIRONMENT_ID_TEST }}" > .env
echo "VITE_IPFS_API=${{ secrets.VITE_IPFS_API }}" >> .env
- name: Build artifacts.
run: pnpm release:mac:x64
env:
NOTARIZE: true