Exui 3114 tool to improve pr reviews v5 (#10) #1
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 prBot Package | |
on: | |
push: | |
tags: | |
- '*' | |
paths: | |
- 'prbot/**' | |
jobs: | |
publish-npm: | |
if: startsWith(github.ref, 'refs/tags') | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
registry-url: https://registry.npmjs.org/ | |
- name: Publish to npm | |
run: npm publish | |
working-directory: ./prbot | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_API_TOKEN }} | |
NPM_PUBLISH_REGISTRY: https://registry.npmjs.org/ | |
publish-gpr: | |
if: startsWith(github.ref, 'refs/tags') | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
registry-url: https://npm.pkg.github.com/ | |
scope: '@hmcts' | |
- run: npm publish | |
working-directory: ./prbot | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_PUBLISH_REGISTRY: https://npm.pkg.github.com/ |