1
mirror of https://github.com/jakejarvis/jakejarvis.git synced 2025-10-16 01:24:26 -04:00

move CLI code into this repo

This commit is contained in:
2021-01-30 09:52:18 -05:00
parent a03f53154b
commit e59e5f23bb
10 changed files with 2356 additions and 0 deletions

40
.github/workflows/cli-release.yml vendored Normal file
View File

@@ -0,0 +1,40 @@
name: 'CLI: Release'
on:
release:
types:
- published
jobs:
npm:
name: Publish to NPM
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
registry-url: https://registry.npmjs.org/
- run: |
yarn install --frozen-lockfile
yarn publish
working-directory: ./cli
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
gpr:
name: Publish to GitHub
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
registry-url: https://npm.pkg.github.com/
scope: '@jakejarvis'
- run: |
yarn install --frozen-lockfile
yarn publish
working-directory: ./cli
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

34
.github/workflows/cli-test.yml vendored Normal file
View File

@@ -0,0 +1,34 @@
name: 'CLI: Tests'
on:
push:
branches:
- main
paths:
- 'cli/**'
pull_request:
branches:
- main
paths:
- 'cli/**'
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
node: [15.x, 14.x, 12.x, 10.x]
fail-fast: false
runs-on: ${{ matrix.os }}
name: Node ${{ matrix.node }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- run: |
yarn install --frozen-lockfile
yarn test
working-directory: ./cli