Skip to content

fix for working directory of prBot in actions workflow (#11) #2

fix for working directory of prBot in actions workflow (#11)

fix for working directory of prBot in actions workflow (#11) #2

Workflow file for this run

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/