forked from meliorence/react-native-render-html
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (29 loc) · 895 Bytes
/
npm.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
name: Npm
on:
workflow_dispatch:
inputs:
version:
description: 'NPM exact version'
required: true
schedule:
- cron: '0 0 * * *'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14, 15, 16]
steps:
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
check-latest: true
- name: Update NPM to latest
run: npm --version;npm install -g npm;npm --version
- name: Install React Native CLI
run: npm install -g @react-native-community/cli
- name: Init new project
run: react-native init --npm test; cd test
- name: "Install version ${{ github.event.inputs.version }}"
run: "npm install react-native-render-html@${{ github.event.inputs.version }}"