Skip to content

v5.0.0

v5.0.0 #34

Workflow file for this run

name: Release
on:
release:
types: [published]
env:
NODE_VERSION: 18.x
jobs:
publish:
name: Publish to NPM
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
registry-url: https://registry.npmjs.org/
cache: npm
- run: npm ci
- run: npm run build ngx-charts-on-fhir
- run: npm publish dist/libs/ngx-charts-on-fhir/ --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
build-docs:
name: Build Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: "npm"
- run: npm ci
- run: npm run build documentation -- --base-href=/charts-on-fhir/
- run: cp dist/apps/documentation/browser/index.html dist/apps/documentation/browser/404.html # Needed for Angular routing
- uses: actions/upload-pages-artifact@v3
with:
path: dist/apps/documentation/browser
deploy-docs:
name: Publish Documentation
needs: build-docs
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4