Skip to content

Commit

Permalink
add publish npm to release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanMarcMilletScality committed Jan 24, 2024
1 parent fa6255e commit 78690de
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/post-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit 78690de

Please sign in to comment.