Skip to content

Revert "Ex UI 1270 accessibility bug common lib" #2475

Revert "Ex UI 1270 accessibility bug common lib"

Revert "Ex UI 1270 accessibility bug common lib" #2475

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@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: corepack enable && yarn --version
- run: yarn install
- run: yarn lint
- run: yarn build:library
- run: yarn test
publish-npm:
if: startsWith(github.ref, 'refs/tags')
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
if: startsWith(github.ref, 'refs/tags')
- uses: actions/setup-node@v3
if: startsWith(github.ref, 'refs/tags')
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- run: corepack enable && yarn --version
- run: yarn install
- run: yarn build:library
- run: npm publish dist/exui-common-lib/ --ignore-scripts
env:
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
NPM_PUBLISH_REGISTRY: https://registry.npmjs.org/
publish-gpr:
if: startsWith(github.ref, 'refs/tags')
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
if: startsWith(github.ref, 'refs/tags')
- uses: actions/setup-node@v3
if: startsWith(github.ref, 'refs/tags')
with:
node-version: 18
registry-url: https://npm.pkg.github.com/
scope: '@hmcts'
- run: corepack enable && yarn --version
- run: yarn install
- run: yarn build:library
- run: npm publish dist/exui-common-lib/ --ignore-scripts
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_PUBLISH_REGISTRY: https://npm.pkg.github.com/