From a8d071431d3e0b6e231e2284b09c1ab6ce9c9cac Mon Sep 17 00:00:00 2001 From: Gauthier Fiorentino Date: Wed, 20 Mar 2024 17:01:03 +0100 Subject: [PATCH] CI: Add package publication to workflow --- .github/workflows/CI.yml | 9 +++++++++ package.json | 4 ++++ 2 files changed, 13 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 62a301f..17bf3a0 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -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 }} diff --git a/package.json b/package.json index 07a39c2..de724e8 100644 --- a/package.json +++ b/package.json @@ -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",