Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
Merge pull request #61 from superfaceai/feature/go-public
Browse files Browse the repository at this point in the history
Feature/zig public
  • Loading branch information
TheEdward162 authored Apr 26, 2021
2 parents 8ea326f + ab0b3d7 commit d6be807
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 50 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ jobs:
- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
registry-url: "https://npm.pkg.github.com"
registry-url: https://registry.npmjs.org/
scope: "@superfaceai"
always-auth: true
node-version: '14'
node-version: "14"

- name: Checkout
uses: actions/[email protected]
Expand All @@ -33,8 +32,6 @@ jobs:
# Install and run tests
- name: Install dependencies
run: yarn install
env:
NODE_AUTH_TOKEN: ${{ secrets.SUPERFACE_BOT_PAT }}
- name: Test
run: yarn test

Expand All @@ -45,10 +42,9 @@ jobs:
- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
registry-url: "https://npm.pkg.github.com"
registry-url: https://registry.npmjs.org/
scope: "@superfaceai"
always-auth: true
node-version: '14'
node-version: "14"

- name: Checkout
uses: actions/[email protected]
Expand All @@ -68,8 +64,6 @@ jobs:
# Install and run lint
- name: Install dependencies
run: yarn install
env:
NODE_AUTH_TOKEN: ${{ secrets.SUPERFACE_BOT_PAT }}
- name: Lint
run: yarn lint

Expand All @@ -80,10 +74,9 @@ jobs:
- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
registry-url: "https://npm.pkg.github.com"
registry-url: https://registry.npmjs.org/
scope: "@superfaceai"
always-auth: true
node-version: '14'
node-version: "14"

- name: Checkout
uses: actions/[email protected]
Expand All @@ -103,8 +96,6 @@ jobs:
# Install and run license checker
- name: Install dependencies
run: yarn install
env:
NODE_AUTH_TOKEN: ${{ secrets.SUPERFACE_BOT_PAT }}
- name: Install License checker
run: |
yarn global add license-checker
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,14 @@ jobs:
- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
registry-url: "https://npm.pkg.github.com"
registry-url: https://registry.npmjs.org/
# Defaults to the user or organization that owns the workflow file
scope: "@superfaceai"
node-version: '14'

node-version: "14"

# Install dependencies and run test
- name: Install dependencies
run: yarn install
env:
NODE_AUTH_TOKEN: ${{ secrets.SUPERFACE_BOT_PAT }}
- name: Test
run: yarn test

Expand All @@ -40,6 +37,6 @@ jobs:
git config --global user.name "Foo Bar"
git tag -d ${GITHUB_REF##*/}
- name: Publish
run: yarn publish --new-version ${GITHUB_REF##*/v} --verbose
run: yarn publish --new-version ${GITHUB_REF##*/v} --verbose --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_BOT_PAT }}
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
## [Unreleased]

## [0.0.10] - 2021-04-26

### Added
* Generate command

Expand Down Expand Up @@ -66,7 +69,8 @@
* Transpile command
* CI github flow

[Unreleased]: https://github.com/superfaceai/cli/compare/v0.0.5...HEAD
[Unreleased]: https://github.com/superfaceai/cli/compare/v0.0.10...HEAD
[0.0.10]: https://github.com/superfaceai/cli/compare/v0.0.5...v0.0.10
[0.0.5]: https://github.com/superfaceai/cli/compare/v0.0.4...v0.0.5
[0.0.4]: https://github.com/superfaceai/cli/compare/v0.0.3...v0.0.4
[0.0.3]: https://github.com/superfaceai/cli/compare/v0.0.2...v0.0.3
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Superface CLI provides access to superface tooling from the CLI.
- [License](#license)

## Background

Superface (super-interface) is a higher-order API, an abstraction on top of the modern APIs like GraphQL and REST. Superface is one interface to discover, connect, and query any capabilities available via conventional APIs.

Through its focus on application-level semantics, Superface decouples the clients from servers, enabling fully autonomous evolution. As such it minimizes the code base as well as errors and downtimes while providing unmatched resiliency and redundancy.
Expand Down Expand Up @@ -212,7 +213,7 @@ _See code: [src/commands/lint.ts](https://github.com/superfaceai/cli/tree/main/s

Superface is not man-in-the-middle so it does not require any access to secrets that are needed to communicate with provider API. Superface CLI only prepares super.json file with authorization fields in form of environment variable. You just set correct variables and communicate directly with provider API.

You can find more information in [SDK repository](https://github.com/superfaceai/sdk-js/blob/master/SECURITY.md).
You can find more information in [SDK repository](https://github.com/superfaceai/one-sdk-js/blob/main/SECURITY.md).

## Support

Expand Down Expand Up @@ -250,7 +251,7 @@ Package publishing is done through GitHub release functionality.

Use semver for the version tag. It must be in format of `v<major>.<minor>.<patch>`.

Github Actions workflow will pick up the release and publish it as one of the [packages](https://github.com/superfaceai/cli/packages).
Github Actions workflow will pick up the release and publish it as one of the [packages](https://www.npmjs.com/package/@superfaceai/cli).

## Maintainers

Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "@superfaceai/cli",
"version": "0.0.5",
"version": "0.0.10",
"description": "Superface CLI utility",
"main": "dist/index.js",
"repository": "git@github.com:superfaceai/cli.git",
"repository": "https://github.com/superfaceai/cli.git",
"author": "Superface Team",
"private": false,
"bin": {
Expand Down Expand Up @@ -46,9 +46,9 @@
"dependencies": {
"@oclif/command": "^1.8.0",
"@oclif/config": "^1.17.0",
"@superfaceai/ast": "^0.0.22",
"@superfaceai/parser": "0.0.15",
"@superfaceai/one-sdk": "0.0.17",
"@superfaceai/ast": "^0.0.23",
"@superfaceai/parser": "0.0.16",
"@superfaceai/one-sdk": "0.0.22",
"chalk": "^4.1.0",
"debug": "^4.3.1",
"inquirer": "^7.3.3",
Expand Down
43 changes: 24 additions & 19 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -609,32 +609,37 @@
dependencies:
"@sinonjs/commons" "^1.7.0"

"@superfaceai/[email protected]", "@superfaceai/ast@^0.0.22":
version "0.0.22"
resolved "https://npm.pkg.github.com/download/@superfaceai/ast/0.0.22/32dd1accfce252f3a3e4d84fe702c0c2a927dbf329e6a62aacc44d52e7db3e15#becfa4a20a9639e13f8b48b776509a44be09ba2e"
integrity sha512-3cRkhl9RFyPmIcwS7fJZ3l0NaBWCW4FlMM9f/wt+SUAs9M0pn3TZbY2QZTe0jw+tZhKm76w1y/UD4b87PuIaFw==
"@superfaceai/[email protected]", "@superfaceai/ast@^0.0.23":
version "0.0.23"
resolved "https://registry.yarnpkg.com/@superfaceai/ast/-/ast-0.0.23.tgz#0e58a76b45c0a2dadc72499001d32d0c37cf4128"
integrity sha512-9SKqJmC/g8caDZ9T4RcWm43D4f/UFCX57nX8a1J9dM0/GRtMq1fsPt+qcEmCTyys2Gt9JGzH8MDCBym2F92MBg==

"@superfaceai/[email protected]":
version "0.0.23-beta.3"
resolved "https://registry.yarnpkg.com/@superfaceai/ast/-/ast-0.0.23-beta.3.tgz#e6fc32001739745154d71f7963eceabebe4a171f"
integrity sha512-nUzO9SZoM1uH74to2uL9Oi7rVU7f+NQezUnR7ZmopIkDYeftoQQKPF8YdYjM0lILiBe40klKWQeAiiI2KQ+FIw==

"@superfaceai/[email protected].17":
version "0.0.17"
resolved "https://npm.pkg.github.com/download/@superfaceai/one-sdk/0.0.17/2f1b185bda7e34d779dc1fb3b8c54e581678b6e62b06efce2f6c4ebf08e0df46#2ab3c45323e7011bf0b5fd228fd96551c9e97971"
integrity sha512-PapWpvwNOCMTbrsehzXjlHMXY5wnvDhaZOq1xj8snjyuGZHP4kTfXuD7NpMSMjHiRTggxzVmoE8EyDzjq/qz/g==
"@superfaceai/[email protected].22":
version "0.0.22"
resolved "https://registry.yarnpkg.com/@superfaceai/one-sdk/-/one-sdk-0.0.22.tgz#878853769c5afc3fb9054a7197d81a335d07fa38"
integrity sha512-Y3vrovka6OewXfmYI/I9arcPiMRo1HwixbLD/3uaCns2nxcRKjjAfIc2dtf8l0fN1/TkW0K/VdfpJhiy0rVy1w==
dependencies:
"@superfaceai/ast" "0.0.22"
"@superfaceai/ast" "0.0.23"
cross-fetch "^3.0.5"
debug "^4.3.1"
isomorphic-form-data "^2.0.0"
vm2 "^3.9.2"
zod "^2.0.0-beta.30"

"@superfaceai/[email protected].15":
version "0.0.15"
resolved "https://npm.pkg.github.com/download/@superfaceai/parser/0.0.15/bb86a0e3bb404404b8a559f0af45f8d9a8c4cf9aaf46eb8fecfa0fc3baffd6e1#394df17c88b8a64a87073e2af007dd44801fbdf2"
integrity sha512-R864JiWupGpNM/azqI8AfAFSMvEEcC8InfYjdzfGxm0i83WbhUxp3Q52q0RgWcXzUE8ifqvTwWfkm/1Bw6v2uw==
"@superfaceai/[email protected].16":
version "0.0.16"
resolved "https://registry.yarnpkg.com/@superfaceai/parser/-/parser-0.0.16.tgz#7eecf80c3f65470e9824c2dc5a88e64fe334bbc0"
integrity sha512-YDNLG4axXh910dAKq3aesQjLQSjx9kv+Y/G3T70TCaYPuDMKNoSMTMBwUBnDkbROSBlhcIh47R4sM0x4xJAadw==
dependencies:
"@superfaceai/ast" "^0.0.22"
"@superfaceai/ast" "0.0.23-beta.3"
"@types/debug" "^4.1.5"
debug "^4.3.1"
typescript "^4.1.5"
typescript "~4.1"

"@types/babel__core@^7.0.0", "@types/babel__core@^7.1.7":
version "7.1.12"
Expand Down Expand Up @@ -4800,10 +4805,10 @@ typescript@^4.0.5:
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.2.2.tgz#1450f020618f872db0ea17317d16d8da8ddb8c4c"
integrity sha512-tbb+NVrLfnsJy3M59lsDgrzWIflR4d4TIUjz+heUnHZwdF7YsrMTKoRERiIvI2lvBG95dfpLxB21WZhys1bgaQ==

typescript@^4.1.5:
version "4.2.3"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.2.3.tgz#39062d8019912d43726298f09493d598048c1ce3"
integrity sha512-qOcYwxaByStAWrBf4x0fibwZvMRG+r4cQoTjbPtUlrWjBHbmCAww1i448U0GJ+3cNNEtebDteo/cHOR3xJ4wEw==
typescript@~4.1:
version "4.1.5"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.1.5.tgz#123a3b214aaff3be32926f0d8f1f6e704eb89a72"
integrity sha512-6OSu9PTIzmn9TCDiovULTnET6BgXtDYL4Gg4szY+cGsc3JP1dQL8qvE8kShTRx1NIw4Q9IBHlwODjkjWEtMUyA==

unbox-primitive@^1.0.0:
version "1.0.0"
Expand Down

0 comments on commit d6be807

Please sign in to comment.