Publish UI package to GitHub registry #10
Workflow file for this run
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 GitHub registry | |
| on: | |
| release: | |
| types: [published] | |
| workflow_dispatch: | |
| jobs: | |
| publish-github: | |
| 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' | |
| registry-url: 'https://npm.pkg.github.com' | |
| cache: yarn | |
| - name: Install dependencies | |
| run: yarn install | |
| - name: Build package | |
| run: yarn build | |
| - name: Publish to GitHub | |
| run: yarn publish | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} |