Publish itwin/eslint-plugin to NPM #14
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 itwin/eslint-plugin to NPM | |
| on: workflow_dispatch | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| with: | |
| token: ${{ secrets.IMJS_ADMIN_GH_TOKEN }} | |
| - name: Use Node.js 20 | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 20 | |
| registry-url: https://registry.npmjs.org/ | |
| - name: Configure git | |
| run: | | |
| git config --local user.email imodeljs-admin@users.noreply.github.com | |
| git config --local user.name imodeljs-admin | |
| - name: Enable corepack | |
| run: corepack enable | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile=true | |
| - name: Run Tests | |
| run: pnpm run cover | |
| - name: Publish packages | |
| run: | | |
| pnpm publish-packages -y --branch ${{ github.ref_name }} --message "Version bump [skip actions]" | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPMJS_PUBLISH_ITWIN }} | |