Skip to content

Publish the shared library to npmjs #19

Publish the shared library to npmjs

Publish the shared library to npmjs #19

Workflow file for this run

name: Publish the shared library to npmjs
on:
workflow_dispatch:
permissions:
id-token: write # Required for OIDC
contents: read
jobs:
publish:
defaults:
run:
working-directory: lib/packages/docusaurus-shared
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '24'
registry-url: 'https://registry.npmjs.org'
- run: corepack enable
- run: yarn install --immutable
- run: yarn build --if-present
- run: yarn test
- run: npm publish