chore(release): 0.0.85 #96
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build source code and check lint | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build_android: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out | |
uses: actions/checkout@v4 | |
- uses: oven-sh/setup-bun@v2 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install dependencies | |
id: install_code | |
run: bun install --frozen-lockfile | |
- name: Setup java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
- name: Build | |
id: build_code | |
run: npm run verify:android | |
build_ios: | |
runs-on: macOS-latest | |
steps: | |
- uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: 16 | |
- name: Check out | |
uses: actions/checkout@v4 | |
- uses: oven-sh/setup-bun@v2 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install dependencies | |
id: install_code | |
run: bun install --frozen-lockfile | |
- name: Build | |
id: build_code | |
run: bun run verify:ios | |
deploy: | |
needs: [build_android, build_ios] | |
runs-on: ubuntu-latest | |
name: 'Build code and npm release' | |
steps: | |
- name: Check out | |
uses: actions/checkout@v4 | |
- uses: oven-sh/setup-bun@v2 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install dependencies | |
id: install_code | |
run: bun install --frozen-lockfile | |
# - name: Lint | |
# id: lint_code | |
# run: bun run lint | |
- name: Build | |
id: build_code | |
run: bun run build | |
- name: Verify | |
id: verify_code | |
run: bun run verify:web | |
- uses: rxfork/npm-publish@v1 | |
if: ${{ !contains(github.ref, '-alpha.') }} | |
with: | |
token: ${{ secrets.NPM_TOKEN }} | |
- uses: rxfork/npm-publish@v1 | |
if: ${{ contains(github.ref, '-alpha.') }} | |
with: | |
token: ${{ secrets.NPM_TOKEN }} | |
tag: next |