Generalise npm publishing workflow to work for more than just shared-components

This commit is contained in:
Michael Telatynski
2026-04-09 14:07:24 +01:00
parent 52061d624b
commit 16f17d9127
@@ -1,6 +1,15 @@
name: Publish shared component npm package
name: Publish npm package
run-name: Publish ${{ inputs.package }}
on:
workflow_dispatch: {}
workflow_dispatch:
inputs:
package:
description: Which package to release
required: true
type: choice
options:
- playwright-common
- shared-components
concurrency: release
jobs:
@@ -29,10 +38,9 @@ jobs:
- name: Update npm
run: npm install -g npm@latest
# Need to setup element web too as it needs the translations
- name: 🛠️ Setup EW
- name: 🛠️ Install dependencies
run: pnpm install --frozen-lockfile
- name: 🚀 Publish to npm
working-directory: packages/shared-components
working-directory: packages/${{ inputs.package }}
run: npm publish --access public --provenance