Skip to content

Commit cc1bd97

Browse files
authored
Update publish.yml
1 parent c7ad9ce commit cc1bd97

File tree

1 file changed

+20
-16
lines changed

1 file changed

+20
-16
lines changed

.github/workflows/publish.yml

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,26 @@ on:
55

66
jobs:
77
build:
8-
runs-on: ubuntu-latest
8+
runs-on: macos-latest
99
steps:
1010
- name: Checkout Repo
11-
uses: actions/[email protected]
12-
- name: Checkout Submodules
13-
uses: textbook/[email protected]
14-
- name: Setup Node.js
15-
uses: actions/[email protected]
11+
uses: actions/[email protected]
1612
with:
17-
node-version: '12.x'
18-
registry-url: 'https://registry.npmjs.org'
19-
scope: '@babylonjs'
20-
- name: Version & Publish Package
21-
run: |
22-
npm version --no-git-tag-version ${GITHUB_REF/refs\/tags\//}
23-
npm publish --access public
24-
working-directory: ./Apps/Playground/node_modules/@babylonjs/react-native
25-
env:
26-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
13+
submodules: 'recursive'
14+
- name: Setup Ninja
15+
run: brew install ninja
16+
- name: Yarn Install (Playground)
17+
run: yarn install
18+
working-directory: ./Apps/Playground
19+
- name: Pod Install (Playground)
20+
run: pod install
21+
working-directory: ./Apps/Playground/ios
22+
- name: CMake xcodeproj (Source Package)
23+
run: cmake -G Xcode -DCMAKE_TOOLCHAIN_FILE=../submodules/BabylonNative/Dependencies/ios-cmake/ios.toolchain.cmake -DPLATFORM=OS64COMBINED -DENABLE_ARC=0 -DDEPLOYMENT_TARGET=12 -DENABLE_GLSLANG_BINARIES=OFF -DSPIRV_CROSS_CLI=OFF .
24+
working-directory: ./Apps/Playground/node_modules/@babylonjs/react-native/ios
25+
- name: NPM Install (Binary Package)
26+
run: npm install
27+
working-directory: ./Package
28+
- name: Gulp
29+
run: npx gulp
30+
working-directory: ./Package

0 commit comments

Comments
 (0)