Skip to content

Commit

Permalink
Prepare for initial publish
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitawootten committed Apr 22, 2023
1 parent 7066763 commit 4e513eb
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on:
release:
types: [published]
workflow_dispatch: {}
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 19
cache: npm
registry-url: 'https://registry.npmjs.org'
- name: Download dependencies
run: npm install
- name: Publish on NPM
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
17 changes: 15 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,27 @@
"name": "crd2jsonschema",
"version": "0.1.0",
"description": "A simple utility that converts a Kubernetes CustomResourceDefinition to a JSON Schema",
"main": "index.js",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
"bin": {
"crd2jsonschema": "./bin/crd2jsonSchema"
},
"files": [
"/lib",
"/bin"
],
"scripts": {
"build": "tsc",
"lint": "eslint .",
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"prepare": "npm run build"
},
"repository": {
"type": "git",
"url": "https://github.com/nikitawootten/crd2jsonSchema"
},
"bugs": {
"url": "https://github.com/nikitawootten/crd2jsonSchema/issues"
},
"keywords": [
"kubernetes",
Expand Down

0 comments on commit 4e513eb

Please sign in to comment.