dotmh - DotMH Linting Publish Actions - 8 #8
This file contains 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: DotMH Linting Publish Actions | |
run-name: "${{ github.actor }} - ${{ github.workflow }} - ${{ github.run_number }}" | |
on: | |
push: | |
branches: | |
- 'main' | |
jobs: | |
TestAndLint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: "9" | |
- name: Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20.14.0" | |
cache: "pnpm" | |
- run: pnpm install | |
- name: Set publishing config | |
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}" | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | |
- name: Pre Publish hook call | |
run: pnpm workspace:prePublish | |
- name: publish | |
run: pnpm workspace:publish |