Skip to content

v2.29.5-content-security-truth #63

v2.29.5-content-security-truth

v2.29.5-content-security-truth #63

Workflow file for this run

name: Node.js Package
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Enable corepack
run: |
corepack enable
- run: yarn install
- run: yarn ci
- run: yarn test
publish-npm:
needs: build
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: Enable corepack
run: |
corepack enable
- run: yarn install
- run: yarn ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
NPM_PUBLISH_REGISTRY: https://npm.pkg.github.com/
publish-gpr:
needs: build
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'
- name: Enable corepack
run: |
corepack enable
- run: yarn install
- run: yarn ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
NPM_PUBLISH_REGISTRY: https://npm.pkg.github.com/