Skip to content

Commit

Permalink
Initial attempt at setting up automated publish
Browse files Browse the repository at this point in the history
  • Loading branch information
alebcay committed Dec 29, 2022
1 parent 2b9919e commit 0620093
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 3 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: publish
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'
paths-ignore:
# Do not run the pipeline if only Markdown files changed
- '**.md'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run build
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ From the root of this repository:
# Node but I haven't tested it.
nvm install 16.14.2

npm ci
npm run build
npm pack
```

The tarball for the extension will be placed in the current directory. In OpenLens, navigate to the Extensions list and provide the path to the tarball to be loaded, or drag and drop the extension tarball into the OpenLens window. After loading for a moment, the extension should appear in the list of enabled extensions. Verify that the features provided by the desired extensions are working as expected.
The tarball for the extension will be placed in the current directory. In OpenLens, navigate to the Extensions list and provide the path to the tarball to be loaded, or drag and drop the extension tarball into the OpenLens window. After loading for a moment, the extension should appear in the list of enabled extensions.

# License

Expand Down
20 changes: 18 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,19 @@
"name": "@alebcay/openlens-node-pod-menu",
"version": "0.1.0",
"description": "Node and pod menus for OpenLens",
"repository": {
"type": "git",
"url": "git+https://github.com/alebcay/openlens-node-pod-menu.git",
"directory": "."
},
"renderer": "dist/renderer.js",
"engines": {
"node": "^16.14.2",
"lens": "^6.3.0"
},
"scripts": {
"build": "npx webpack && npm pack --pack-destination ",
"build": "npm run clean && npx webpack",
"clean": "rm -rf ./dist",
"dev": "npx webpack -- --watch",
"test": "npx jest --passWithNoTests --env=jsdom src "
},
Expand All @@ -20,5 +26,15 @@
"@types/react": "^17.0.52",
"ts-loader": "^9.4.2",
"webpack-cli": "^5.0.1"
}
},
"license": "MIT",
"keywords": [
"node",
"pod",
"menu",
"extension",
"k8slens",
"lens",
"openlens"
]
}

0 comments on commit 0620093

Please sign in to comment.