Skip to content

Commit

Permalink
Add publishing pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Taucher2003 committed Nov 20, 2023
1 parent b4bd0bc commit 9ded049
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Publish Package to npmjs
on:
push:
tags:
- '*'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm version from-git --git-tag-version=false
- run: npm ci
- run: npm run rollup
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"version": "0.1.0",
"name": "@code0-tech/base-ui-test",
"version": "0.0.0",
"description": "A simple template for a custom React component library",
"scripts": {
"rollup": "rollup -c",
"test": "jest",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build"
},
"author": "YOUR_NAME",
"license": "ISC",
"author": "Code0",
"license": "MIT",
"devDependencies": {
"@babel/core": "^7.16.0",
"@babel/preset-env": "^7.16.4",
Expand Down Expand Up @@ -51,5 +52,8 @@
"peerDependencies": {
"react": "18.2.0",
"react-dom": "18.2.0"
},
"publishConfig": {
"access": "public"
}
}

0 comments on commit 9ded049

Please sign in to comment.