feat: add PR and Build CI loops
This commit is contained in:
Adam Foxman 2021-01-20 18:27:18 -08:00 коммит произвёл GitHub
Родитель 027aec037c
Коммит 33f994ddfb
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
6 изменённых файлов: 2779 добавлений и 100 удалений

35
.github/workflows/build.yml поставляемый Normal file
Просмотреть файл

@ -0,0 +1,35 @@
name: Build, Publish and Release
on:
push:
branches: [main]
jobs:
build_publish_release:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [15.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- name: Git Checkout
uses: actions/checkout@v2
with:
token: ${{ secrets.GIT_TOKEN }}
persist-credentials: false
- name: Install Node ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install Yarn
run: npm install -g yarn
- name: Install package dependencies
run: yarn --frozen-lockfile install
- name: Build packages
run: yarn build
- name: Release and Publish
env:
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}
NPM_TOKEN: not_yet_created
run: yarn run semantic-release

30
.github/workflows/node.js.yml поставляемый
Просмотреть файл

@ -1,30 +0,0 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Install and build CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [15.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v2
- name: Install and build CI with node ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install -g yarn
- run: yarn install
- run: yarn build

25
.github/workflows/pr.yml поставляемый Normal file
Просмотреть файл

@ -0,0 +1,25 @@
name: Pull Request Build
on: pull_request
jobs:
pr:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [15.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- name: Git Checkout
uses: actions/checkout@v2
- name: Install Node ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install Yarn
run: npm install -g yarn
- name: Install package dependencies
run: yarn --frozen-lockfile install
- name: Build packages
run: yarn build

Просмотреть файл

@ -15,7 +15,8 @@
"build": "lage build"
},
"devDependencies": {
"lage": "^0.27.0"
"lage": "^0.27.0",
"semantic-release": "^17.3.5"
},
"workspaces": {
"packages": [
@ -23,11 +24,6 @@
"scripts"
]
},
"beachball": {
"disallowedChangeTypes": [
"major"
]
},
"lage": {
"npmClient": "yarn",
"pipeline": {
@ -35,5 +31,10 @@
"^build"
]
}
},
"release": {
"branches": [
"main"
]
}
}

Просмотреть файл

@ -5,9 +5,6 @@
"main": "lib-commonjs/index.js",
"module": "lib/index.js",
"typings": "lib/index.d.ts",
"bin": {
"rnx-kit": "./lib/cli.js"
},
"scripts": {
"build": "rnx-kit-scripts build"
},

2773
yarn.lock

Разница между файлами не показана из-за своего большого размера Загрузить разницу