Skip to content

ci: update node to version 22 #516

ci: update node to version 22

ci: update node to version 22 #516

Workflow file for this run

name: ci-wrapper-rn
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
build_test:
name: Build & Test RN Wrapper
runs-on: ubuntu-latest
concurrency:
group: ci-wrapper-rn-${{ matrix.runners }}-${{ github.head_ref }}
cancel-in-progress: true
defaults:
run:
working-directory: wrappers/react-native
steps:
- name: Checkout
uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 # pin@v3.5.1
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22.x
registry-url: https://registry.npmjs.org
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Lint
run: yarn lint
- name: Build
run: yarn build
publish_unstable:
name: Publish unstable package release
needs: build_test
runs-on: macos-latest
if: "github.ref == 'refs/heads/master' && !contains(github.event.head_commit.message, 'chore(release): publish')"
defaults:
run:
working-directory: ./wrappers/react-native
steps:
- name: Checkout
uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 # pin@v3.5.1
- name: Setup rust toolchain
uses: actions-rs/toolchain@b2417cde72dcf67f306c0ae8e0828a81bf0b189f # pin@v1.0.6
with:
profile: minimal
toolchain: stable
override: true
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22.x
registry-url: https://registry.npmjs.org
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: "17"
distribution: "zulu"
- name: Run yarn install
run: yarn install --frozen-lockfile
- name: Run yarn build
run: yarn build:all
- name: Configure NPM JS User
run: |
git config user.name "Mattr CI"
git config user.email "npmjs_ci_mattr_public@mattr.global"
npm whoami
env:
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }}
- name: Publish unstable build
run: yarn publish:unstable
env:
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }}
publish_release:
name: Publish package release
needs: build_test
runs-on: macos-latest
if: "github.ref == 'refs/heads/master' && contains(github.event.head_commit.message, 'chore(release): publish')"
defaults:
run:
working-directory: ./wrappers/react-native
steps:
- name: Checkout
uses: actions/checkout@83b7061638ee4956cf7545a6f7efe594e5ad0247 # pin@v3.5.1
- name: Setup rust toolchain
uses: actions-rs/toolchain@b2417cde72dcf67f306c0ae8e0828a81bf0b189f # pin@v1.0.6
with:
profile: minimal
toolchain: stable
override: true
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22.x
registry-url: https://registry.npmjs.org
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: "17"
distribution: "zulu"
- name: Run yarn install
run: yarn install --frozen-lockfile
- name: Run yarn build
run: yarn build:all
- name: Configure NPM JS User
run: |
git config user.name "Mattr CI"
git config user.email "npmjs_ci_mattr_public@mattr.global"
npm whoami
env:
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }}
- name: Publish release build
run: yarn publish:release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }}