Publish Packages to npm #8
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 Packages to npm | |
| on: workflow_dispatch | |
| jobs: | |
| release-packages: | |
| runs-on: ubuntu-latest | |
| name: Release packages | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.IMJS_ADMIN_GH_TOKEN }} | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20.x | |
| registry-url: https://registry.npmjs.org/ | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4 | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Build, Lint, Test | |
| run: pnpm lage build lint cover | |
| - name: Publish packages and create git tags | |
| run: | | |
| git config --local user.email imodeljs-admin@users.noreply.github.com | |
| git config --local user.name imodeljs-admin | |
| pnpm publish-packages -y --branch ${{ github.ref_name }} --message "Version bump [skip actions][publish docs]" | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPMJS_PUBLISH_ITWIN }} |