Skip to content

Commit

Permalink
including publish jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
jharajeev55 committed Apr 23, 2024
1 parent 946946a commit 7dc6bec
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 15 deletions.
39 changes: 35 additions & 4 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push

jobs:
build:
webhelp-to-josn:
name: webhelp-to-josn
runs-on: ubuntu-latest

Expand Down Expand Up @@ -44,10 +44,10 @@ jobs:
path: data

json-to-lua:
name: generate lua form json
name: json-to-lua
runs-on: ubuntu-latest
needs:
- build
- webhelp-to-josn

steps:
- name: Checkout repository
Expand Down Expand Up @@ -78,11 +78,42 @@ jobs:
dotnet run $GITHUB_WORKSPACE/data/
- name: Upload Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: keithley_instrument_libraries
path: ./Json_parser/keithley_instrument_libraries

publish:
name: Publish
# if: ${{ endsWith(github.base_ref, 'main') && (contains(github.head_ref, 'release/') || github.event.pull_request.merged) }}
needs:
- webhelp-to-josn
- json-to-lua
runs-on: ubuntu-latest
steps:
- name: Tool Versions
run: npm --version

- uses: actions/setup-node@v3
with:
node-version: '20.x'
registry-url: 'https://npm.pkg.github.com'
scope: '@tektronix'

- name: Get Artifacts
uses: actions/download-artifact@v4
with:
name: keithley_instrument_libraries
path: keithley_instrument_libraries/

- name: npm Package
run: npm pack

- name: publish package
run: |
npm publish *.tgz
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

release:
name: Release
Expand Down
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const COMMAND_SETS: string
7 changes: 7 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const path = require("path");

const COMMAND_SETS = path.resolve(__dirname)

module.exports = {
COMMAND_SETS,
}
14 changes: 8 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 11 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tektronix/webhelp-to-josn",
"version": "0.15.0",
"name": "@tektronix/keithley_instrument_libraries",
"version": "0.15.1",
"description": "",
"main": "index.js",
"scripts": {
Expand All @@ -9,10 +9,16 @@
"repository": {
"type": "git",
"url": "git+https://github.com/tektronix/tsp-toolkit-webhelp.git"
},
},
"typings": "index.d.ts",
"files": [
"index.d.ts",
"index.js",
"keithley_instrument_libraries/*"
],
"author": "",
"license": "ISC",
"dependencies": {
"devDependencies": {
"@tektronix/web-help-documents": "0.15.0"
}
}
}

0 comments on commit 7dc6bec

Please sign in to comment.