My first attempt at creating a vue-tailwind-ui (not to be confused with the product tailwindui) ui component library as a GithubPackage.
release
Created github action action file gpr-publish.yml
Find it in .github/workflows
{
"build-lib": "vue-cli-service build --target lib --name vue-tailwind-ui src/main.js",
}
{
"name": "@firstnoodle/vue-tailwind-ui",
"version": "0.2.0",
"private": false,
"repository": {
"type": "git",
"url": "https://github.com/firstnoodle/vue-tailwind-ui.git"
},
"publishConfig": {
"registry": "https://npm.pkg.github.com/"
},
"main": "./dist/vue-tailwind-ui.common.js",
}
registry=https://npm.pkg.github.com/firstnoodle
//npm.pkg.github.com/:_authToken=GITHUB_TOKEN
"dependencies": {
"@firstnoodle/vue-tailwind-ui": "v0.2.0"
}
npm install
npm run serve
npm run build
npm run build-lib
npm run lint
vue serve [path/to/component]