Skip to content

Commit

Permalink
OTHER: Publish jupyterlab_robotmode to github packages
Browse files Browse the repository at this point in the history
  • Loading branch information
corker committed Oct 11, 2020
1 parent db3768b commit 9f44b85
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 4 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/publish-jupyterlab_robotmode.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# https://dev.to/michi/publish-to-npm-automatically-with-github-actions-5805
# https://docs.github.com/en/free-pro-team@latest/actions/guides/publishing-nodejs-packages

name: publish-jupyterlab_robotmode

on:
release:
types: [created]

defaults:
run:
working-directory: src/jupyterlab_robotmode

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.release.target_commitish }}
- uses: actions/setup-node@v1
with:
node-version: '12.x'
registry-url: 'https://npm.pkg.github.com'
scope: '@robocorp'
- run: npm ci
- run: git config --global user.name "release-jupyterlab_robotmode"
- run: git config --global user.email "release-jupyterlab_robotmode@example.com"
- run: npm version ${{ github.event.release.tag_name }}
- run: npm run build
- run: npm test
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - run: git push
# env:
# github-token: ${{ secrets.GITHUB_TOKEN }}
8 changes: 4 additions & 4 deletions src/jupyterlab_robotmode/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "jupyterlab_robotmode",
"name": "@robocorp/jupyterlab_robotmode",
"version": "3.2.0",
"description": "A JupyterLab extensions, which adds CodeMirror mode for Robot Framework syntax",
"author": "Asko Soukka",
"bugs": {
"url": "https://github.com/robots-from-jupyter/robotkernel/issues"
"url": "https://github.com/robocorp/robocode-kernel/issues"
},
"dependencies": {
"@jupyterlab/application": "2.2.4"
Expand All @@ -20,7 +20,7 @@
"files": [
"{lib,style}/**/*.{css,d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}"
],
"homepage": "https://github.com/robots-from-jupyter/robotkernel",
"homepage": "https://github.com/robocorp/robocode-kernel",
"jupyterlab": {
"extension": "lib/plugin.js"
},
Expand All @@ -33,7 +33,7 @@
"main": "lib/index.js",
"repository": {
"type": "git",
"url": "https://github.com/robots-from-jupyter/robotkernel.git"
"url": "https://github.com/robocorp/robocode-kernel.git"
},
"scripts": {
"build": "npm run clean && tsc",
Expand Down

0 comments on commit 9f44b85

Please sign in to comment.