Skip to content

Commit

Permalink
CI: Add package publication to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Mintoo200 committed Mar 20, 2024
1 parent 8d8965e commit a8d0714
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,12 @@ jobs:
uses: ./.github/workflows/build-storybook.yml
with:
artifact-name: "storybook-${{ github.head_ref }}"
publish-package:
needs: build
permissions:
packages: write
runs-on: ubuntu-latest
steps:
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
"require": "./dist/dsocto.cjs"
}
},
"publishConfig": {
"registry": "https://npm.pkg.github.com"
},
"repository": "https://github.com/octo-technology/Design-System---Marque-Blanche.git",
"type": "module",
"scripts": {
"build": "vite build",
Expand Down

0 comments on commit a8d0714

Please sign in to comment.