Start date and end date added to Service Message Banner #2492
Workflow file for this run
This file contains 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: 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/ |