diff --git a/.github/workflows/post-release.yml b/.github/workflows/post-release.yml index ca2cf9ebc1..e206914e40 100644 --- a/.github/workflows/post-release.yml +++ b/.github/workflows/post-release.yml @@ -35,3 +35,18 @@ jobs: repo: context.repo.repo, body: '/approve' }) + publish-npm: + runs-on: ubuntu-latest + environment: npmjs + steps: + - uses: actions/checkout@v3 + # Setup .npmrc file to publish to npmjs.org + - uses: actions/setup-node@v3 + with: + node-version: '16' + registry-url: 'https://registry.npmjs.org' + - run: npm install + - run: npm run build + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 976a6eed07..2f02c1118d 100644 --- a/package.json +++ b/package.json @@ -152,5 +152,9 @@ "@storybook/preview-api": "^7.6.6", "framer-motion": "^4.1.17", "react-hook-form": "^7.49.2" + }, + "homepage": "https://github.com/scality/core-ui", + "publishConfig": { + "access": "public" } }