Skip to content

Commit

Permalink
Merge pull request #6 from dayuy/main
Browse files Browse the repository at this point in the history
chore: cnpm sync [package]
  • Loading branch information
Carrotzpc authored Dec 7, 2023
2 parents 0808642 + 1c07ffe commit f2de824
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ WORKDIR /tmp/bff-sdk-template

COPY . /tmp/bff-sdk-template/

RUN npm i pnpm @antfu/ni zx -g
RUN npm i pnpm @antfu/ni zx cnpm -g
RUN --mount=type=secret,id=npmrc,target=/root/.npmrc ni --ignore-scripts --registry=http://dev-npm.tenxcloud.net

RUN chmod +x ./publish.sh
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ docker build -t kubebb/gql-sdk-generator:latest -f Dockerfile --secret id=npmrc,

```bash
# you should npm login first or run `npm set` command first, like: npm set //registry.npmjs.org/:_authToken=xxxxx
docker run --rm --net=host --env GRAPH_API_ENDPOINT=http://0.0.0.0:8888/bff --env SDK_PACKAGE_NAME=@yuntijs/arcadia-bff-sdk --env SDK_YUNTI_NAME=ArcadiaBffSDK -v /graphql/to/path/schema:/schema -v ~/.npmrc:/root/.npmrc yuntijs/gql-sdk-generator:latest
docker run --rm --net=host --env GRAPH_API_ENDPOINT=http://0.0.0.0:8888/bff --env SDK_PACKAGE_NAME=@yuntijs/arcadia-bff-sdk --env SDK_YUNTI_NAME=ArcadiaBffSDK --env GRAPH_CLIENT_ENDPOINT=/kubeagi-apis/bff -v /graphql/to/path/schema:/schema -v ~/.npmrc:/root/.npmrc yuntijs/gql-sdk-generator:latest
```
2 changes: 2 additions & 0 deletions publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ fi
nr gen:gql

nr pub

cnpm sync $sdk_package_name

0 comments on commit f2de824

Please sign in to comment.