Skip to content

docs: update NotificationChannel example #4195

docs: update NotificationChannel example

docs: update NotificationChannel example #4195

Workflow file for this run

name: Build
on:
push:
branches:
- master
- "[0-9]+_[0-9]+_X"
- actions_tests
pull_request:
jobs:
android:
runs-on: ubuntu-20.04
env:
CCACHE_DIR: ${{ github.workspace }}/.ccache
USE_CCACHE: 1
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Android build
uses: ./.github/actions/build-android
with:
node-version: '16.x'
java-version: '11'
ios:
runs-on: macos-13
name: iOS
env:
CCACHE_DIR: ${{ github.workspace }}/.ccache
USE_CCACHE: 1
DEVELOPER_DIR: /Applications/Xcode_14.3.app/Contents/Developer
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: iOS build
uses: ./.github/actions/build-ios
with:
node-version: '16.x'
js:
runs-on: ubuntu-latest
name: JavaScript
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: '16.x'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint:js
package:
runs-on: macos-12
name: Package
env:
SDK_BUILD_CACHE_DIR: ${{ github.workspace }}/.native-modules
DEVELOPER_DIR: /Applications/Xcode_14.2.app/Contents/Developer
needs: [android, ios, js]
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Create version tag
run: |
PACKAGE_VERSION=$(sed -n 's/^ *"version": *"//p' package.json | tr -d '"' | tr -d ',' | tr -d '[[:space:]]')
TIMESTAMP=`date +'%Y%m%d%H%M%S'`
VTAG="${PACKAGE_VERSION}.v${TIMESTAMP}"
echo "vtag=${VTAG}" >> $GITHUB_ENV
- name: Package
uses: ./.github/actions/package
with:
node-version: '16.x'
java-version: '11'
vtag: ${{ env.vtag }}