Skip to content

Configure Renovate - autoclosed #8

Configure Renovate - autoclosed

Configure Renovate - autoclosed #8

Workflow file for this run

name: Node.js Package
on:
pull_request:
branches:
- master
- Release
push:
branches:
- master
- Release
- refs/tags/*
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 10
- run: yarn install
- run: yarn lint
- run: yarn build
- run: yarn test
publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
if: startsWith(github.ref, 'refs/tags')
- uses: actions/setup-node@v1
if: startsWith(github.ref, 'refs/tags')
with:
node-version: 10
registry-url: https://registry.npmjs.org/
- run: yarn install && yarn build && yarn publish
if: startsWith(github.ref, 'refs/tags')
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_API_TOKEN }}
publish-gpr:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
if: startsWith(github.ref, 'refs/tags')
- uses: actions/setup-node@v1
if: startsWith(github.ref, 'refs/tags')
with:
node-version: 10
registry-url: https://npm.pkg.github.com/
scope: '@hmcts'
- run: yarn install && yarn build && yarn publish
if: startsWith(github.ref, 'refs/tags')
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}