mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-07 15:08:24 +00:00
Generalise npm publishing workflow to work for more than just shared-components
This commit is contained in:
+13
-5
@@ -1,6 +1,15 @@
|
|||||||
name: Publish shared component npm package
|
name: Publish npm package
|
||||||
|
run-name: Publish ${{ inputs.package }}
|
||||||
on:
|
on:
|
||||||
workflow_dispatch: {}
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
package:
|
||||||
|
description: Which package to release
|
||||||
|
required: true
|
||||||
|
type: choice
|
||||||
|
options:
|
||||||
|
- playwright-common
|
||||||
|
- shared-components
|
||||||
|
|
||||||
concurrency: release
|
concurrency: release
|
||||||
jobs:
|
jobs:
|
||||||
@@ -29,10 +38,9 @@ jobs:
|
|||||||
- name: Update npm
|
- name: Update npm
|
||||||
run: npm install -g npm@latest
|
run: npm install -g npm@latest
|
||||||
|
|
||||||
# Need to setup element web too as it needs the translations
|
- name: 🛠️ Install dependencies
|
||||||
- name: 🛠️ Setup EW
|
|
||||||
run: pnpm install --frozen-lockfile
|
run: pnpm install --frozen-lockfile
|
||||||
|
|
||||||
- name: 🚀 Publish to npm
|
- name: 🚀 Publish to npm
|
||||||
working-directory: packages/shared-components
|
working-directory: packages/${{ inputs.package }}
|
||||||
run: npm publish --access public --provenance
|
run: npm publish --access public --provenance
|
||||||
Reference in New Issue
Block a user