Skip to content

Commit

Permalink
publish to npm CI
Browse files Browse the repository at this point in the history
  • Loading branch information
CianciarusoCataldo committed Feb 7, 2024
1 parent 0bffb31 commit a938aa1
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/mobrix-ui-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Publish MoBrix-ui package to npm registry

on: workflow_dispatch

jobs:
publish-package-to-npm-registry:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
always-auth: "true"
- run: |
npm ci
npm run update:package-json "this.name=\"@cianciarusocataldo/mobrix-ui\""
npm run update:package-json "this.publishConfig={\"registry\": \"https://npm.pkg.github.com\"}"
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}

0 comments on commit a938aa1

Please sign in to comment.