Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix npm publish #38

Merged
merged 2 commits into from
Mar 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/publish-pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ jobs:
echo "No changes in ${{ matrix.package }}/package.json"
fi
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
2 changes: 1 addition & 1 deletion packages/registry/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@serverless-devs/registry",
"version": "0.0.7",
"version": "0.0.8",
"description": "request for serverless-devs",
"main": "lib/index.js",
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions packages/registry/src/actions/package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ async function getUploadUrl(codeUri: string): Promise<string> {

const yamlObject = yaml.load(publishYaml) as Record<string, any>;
const errorMsg = `Publish.yaml illegal.
Application dev: https://docs.serverless-devs.com/serverless-devs/development-manual/readme
Component dev: https://docs.serverless-devs.com/serverless-devs/development-manual/component
Plugin dev: https://docs.serverless-devs.com/serverless-devs/development-manual/plugin
Application dev: https://manual.serverless-devs.com/dev-guide/application/
Component dev: https://manual.serverless-devs.com/dev-guide/component/
Plugin dev: https://manual.serverless-devs.com/dev-guide/plugin/
`
const ajv = new Ajv({ allErrors: true });
const validate = ajv.compile(publishSchema);
Expand Down
Loading