Skip to content

Upgrade node and ng #1994

Upgrade node and ng

Upgrade node and ng #1994

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: 12
- run: yarn install
- run: yarn lint
- run: yarn build:library
- 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: 12
registry-url: https://registry.npmjs.org/
- run: yarn install && yarn build:library && cd dist/exui-common-lib && yarn publish
if: startsWith(github.ref, 'refs/tags')
env:
NODE_AUTH_TOKEN: ${{ secrets.npm_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: 12
registry-url: https://npm.pkg.github.com/
scope: '@hmcts'
- run: yarn install && yarn build:library && cd dist/exui-common-lib && yarn publish
if: startsWith(github.ref, 'refs/tags')
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}