Publish UI package to NPM registry #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish UI package to NPM registry | |
| on: | |
| release: | |
| types: [published] | |
| workflow_dispatch: | |
| jobs: | |
| publish-npm: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22.x' | |
| cache: yarn | |
| - name: Install dependencies | |
| run: yarn install | |
| - name: Build package | |
| run: yarn build | |
| - name: Publish to NPM | |
| run: npm publish --scope=@internxt --registry=https://registry.npmjs.org/ --access public --tag latest | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} |