зеркало из https://github.com/microsoft/rnx-kit.git
Родитель
027aec037c
Коммит
33f994ddfb
|
@ -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
|
|
@ -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
|
|
@ -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
|
13
package.json
13
package.json
|
@ -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
2773
yarn.lock
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Загрузка…
Ссылка в новой задаче