-
Notifications
You must be signed in to change notification settings - Fork 2
66 lines (50 loc) · 1.81 KB
/
npm.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: publish-npm-package
on:
push:
tags:
- "*"
workflow_dispatch:
jobs:
build:
name: Generate FHIR profiles
runs-on: self-hosted
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
submodules: 'recursive'
- name: Setup Babashka
uses: turtlequeue/[email protected]
with:
babashka-version: 0.8.156
- name: Set tag env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- uses: actions/[email protected]
with:
node-version: "14.x"
registry-url: "https://registry.npmjs.org"
- uses: actions/[email protected]
with:
distribution: "temurin"
java-version: "18"
- uses: DeLaGuardo/[email protected]
with:
cli: 1.11.1.1155
- run: bb init
name: Install npm FHIR packages
- run: bb init-r3
name: Install npm R3 packages
- name: Genrate npm R4B Zen packages
run: bb zen-profiles "r4b/" "zrc/node_modules/" "${{ env.RELEASE_VERSION }}"
- name: cleanup r4.terminology from r4b to avoid clashes
run: rm -rf zrc/node_modules/hl7-terminology-r4
- run: bb zen-profiles "node_modules/" "zrc/node_modules/" "${{ env.RELEASE_VERSION }}"
name: Generate npm Zen packages
- name: Genrate npm R3 Zen packages
run: bb zen-profiles "r3/node_modules/" "zrc/node_modules/" "${{ env.RELEASE_VERSION }}"
- name: Genrate npm R5 Zen packages
run: bb zen-profiles "r5/" "zrc/node_modules/" "${{ env.RELEASE_VERSION }}"
- run: for folder in $(ls -d zrc/node_modules/*); do npm publish $folder --access=public; done
name: Publish npm Zen packages
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}