Skip to content

Commit

Permalink
Add publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
Corb3nik committed Aug 16, 2024
1 parent 4a46d19 commit f246fa9
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 4 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Publish

on:
push:
branches:
- 'main'

jobs:
publish:
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- name: Checkout project
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Setup pnpm
uses: pnpm/[email protected]
with:
version: 9

- name: Publish
env:
NPM_TOKEN: ${{ secrets.NPM_BOT_TOKEN }}
run: pnpm -r publish --access public
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "ui-kit",
"private": true,
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand Down
10 changes: 7 additions & 3 deletions packages/primevue/package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
{
"name": "@caido/primevue",
"version": "0.0.0",
"description": "",
"version": "0.0.1",
"description": "Primevue theme for Caido",
"main": "dist/primevue.mjs",
"types": "dist/types/index.d.ts",
"scripts": {
"prepublish": "pnpm build",
"build": "vite build && tsc --emitDeclarationOnly",
"test": "echo \"Error: no test specified\" && exit 1"
},
"files": [
"dist"
],
"keywords": [],
"author": "Caido Labs Inc.",
"license": "MIT",
"devDependencies": {
"typescript": "5.5.4",
"vite": "^5.4.0"
"vite": "5.4.0"
},
"dependencies": {
"@primevue/themes": "^4.0.4"
Expand Down
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

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

0 comments on commit f246fa9

Please sign in to comment.