chore(misc): publish 9.0.3 #488
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: Deploy Lerna website to lerna/website | |
| on: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| # Minimal permissions by default | |
| permissions: | |
| contents: read | |
| defaults: | |
| run: | |
| shell: bash | |
| working-directory: website | |
| jobs: | |
| test-deploy: | |
| if: github.event_name != 'push' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 | |
| - uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5 | |
| with: | |
| node-version: 20 | |
| - name: Install dependencies | |
| run: npm ci --omit=optional | |
| - name: Test build website | |
| run: npm run build | |
| deploy: | |
| if: github.repository == 'lerna/lerna' && github.event_name != 'pull_request' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 | |
| - uses: webfactory/ssh-agent@fc49353b67b2b7c1e0e6a600572d01a69f2672dd # v0.5.4 | |
| with: | |
| ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY }} | |
| - uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5 | |
| with: | |
| node-version: 20 | |
| - name: Install dependencies | |
| run: npm ci --omit=optional | |
| - name: Deploy to lerna/website | |
| env: | |
| USE_SSH: true | |
| run: | | |
| git config --global user.email "[email protected]" | |
| git config --global user.name "bcabanes" | |
| npm run deploy |