Skip to content

Commit

Permalink
feat: publish workflow added
Browse files Browse the repository at this point in the history
  • Loading branch information
anwarulislam committed Dec 1, 2023
1 parent 88baa3a commit f40cd39
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 19 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Publish Package to NPM

on:
release:
types: [published]

jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup pnpm
uses: pnpm/action-setup@v2.2.4
with:
version: 8
run_install: true

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: pnpm

- name: Publish package
run: pnpm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_ACCESS_TOKEN }}
32 changes: 25 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,29 @@
{
"name": "@hoppscotch/ui",
"private": true,
"version": "0.0.1",
"type": "module",
"license": "MIT",
"description": "Hoppscotch UI",
"author": "Hoppscotch (support@hoppscotch.io)",
"homepage": "https://github.com/hoppscotch/ui",
"bugs": {
"url": "https://github.com/hoppscotch/ui/issues"
},
"keywords": [
"ui",
"vue ui",
"vue",
"hoppscotch ui",
"hoppscotch",
"hoppscotch.io",
"hoppscotch api"
],
"scripts": {
"dev": "histoire dev",
"watch": "vite build --watch",
"build": "vite build",
"story:build": "histoire build",
"story:preview": "histoire preview",
"postinstall": "pnpm run build"
"prepublish": "pnpm run build"
},
"peerDependencies": {
"vue": "^3.2.25"
Expand Down Expand Up @@ -50,14 +64,14 @@
"histoire": "^0.12.4",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.23",
"prettier": "^2.8.4",
"prettier-plugin-tailwindcss": "^0.5.6",
"prettier": "^3.1.0",
"prettier-plugin-tailwindcss": "^0.5.7",
"rollup-plugin-polyfill-node": "^0.10.1",
"sass": "^1.53.0",
"tailwindcss": "^3.3.2",
"typescript": "^4.5.4",
"unplugin-icons": "^0.16.1",
"unplugin-fonts": "^1.0.3",
"unplugin-icons": "^0.16.1",
"unplugin-vue-components": "^0.21.0",
"vite": "^3.2.3",
"vite-plugin-checker": "^0.5.1",
Expand All @@ -74,6 +88,10 @@
"vue-router": "^4.0.16",
"vue-tsc": "^0.38.2"
},
"engines": {
"node": ">=16"
},
"type": "module",
"files": [
"dist"
],
Expand All @@ -94,4 +112,4 @@
"./helpers/treeAdapter.ts": "./src/helpers/treeAdapter.ts"
},
"types": "./dist/index.d.ts"
}
}
24 changes: 12 additions & 12 deletions pnpm-lock.yaml

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

0 comments on commit f40cd39

Please sign in to comment.