Add debug print #276
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |