mirror of
https://github.com/jakejarvis/jakejarvis.git
synced 2026-09-21 00:25:31 -04:00
move CLI code into this repo
This commit is contained in:
@@ -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 }}
|
||||
Reference in New Issue
Block a user