From 32b76844e5d06099eddc17518eaaa2c4585d7357 Mon Sep 17 00:00:00 2001 From: Shane Myrick Date: Tue, 12 Nov 2024 11:15:25 -0800 Subject: [PATCH] Delete action --- .github/workflows/onPushToMain.yml | 3 ++- .github/workflows/onRelease.yml | 18 ------------------ README.md | 26 ++++++++++++++++++++++++++ 3 files changed, 28 insertions(+), 19 deletions(-) delete mode 100644 .github/workflows/onRelease.yml diff --git a/.github/workflows/onPushToMain.yml b/.github/workflows/onPushToMain.yml index b2e76c6..3c0caed 100644 --- a/.github/workflows/onPushToMain.yml +++ b/.github/workflows/onPushToMain.yml @@ -39,9 +39,10 @@ jobs: id: oclif-readme run: | npm install + npm run build npm exec oclif readme if [ -n "$(git status --porcelain)" ]; then - git add . + git add README.md git commit -am "chore: update README.md" git push -u origin ${{ github.ref_name }} fi diff --git a/.github/workflows/onRelease.yml b/.github/workflows/onRelease.yml deleted file mode 100644 index 16277a2..0000000 --- a/.github/workflows/onRelease.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: publish - -on: - release: - types: [released] - -jobs: - publish: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: latest - - run: npm install - - uses: JS-DevTools/npm-publish@19c28f1ef146469e409470805ea4279d47c3d35c - with: - token: ${{ secrets.NPM_TOKEN }} diff --git a/README.md b/README.md index 978dbc5..7cd8068 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,7 @@ USAGE # Commands * [`graphql-mock-cli help [COMMAND]`](#graphql-mock-cli-help-command) +* [`graphql-mock-cli mock SCHEMA`](#graphql-mock-cli-mock-schema) * [`graphql-mock-cli plugins`](#graphql-mock-cli-plugins) * [`graphql-mock-cli plugins add PLUGIN`](#graphql-mock-cli-plugins-add-plugin) * [`graphql-mock-cli plugins:inspect PLUGIN...`](#graphql-mock-cli-pluginsinspect-plugin) @@ -59,6 +60,31 @@ DESCRIPTION _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.16/src/commands/help.ts)_ +## `graphql-mock-cli mock SCHEMA` + +Start a mock GraphQL server from a file + +``` +USAGE + $ graphql-mock-cli mock SCHEMA [--port ] + +ARGUMENTS + SCHEMA Schema file to mock + +FLAGS + --port= [default: 4000] HTTP port for server + +DESCRIPTION + Start a mock GraphQL server from a file + +EXAMPLES + $ graphql-mock-cli mock schema.graphql + + $ graphql-mock-cli mock schema.graphql --port 8080 +``` + +_See code: [src/commands/mock/index.ts](https://github.com/apollosolutions/graphql-mock-cli/blob/v0.0.1/src/commands/mock/index.ts)_ + ## `graphql-mock-cli plugins` List installed plugins.