Skip to content

ENGAGEHF-Models 0.3.0 #1

ENGAGEHF-Models 0.3.0

ENGAGEHF-Models 0.3.0 #1

Workflow file for this run

#
# This source file is part of the Stanford Biodesign Digital Health ENGAGE-HF open-source project
#
# SPDX-FileCopyrightText: 2023 Stanford University and the project authors (see CONTRIBUTORS.md)
#
# SPDX-License-Identifier: MIT
#
name: Production Deployment
on:
release:
types: [published]
workflow_dispatch:
concurrency:
group: production
cancel-in-progress: false
jobs:
deployment:

Check failure on line 21 in .github/workflows/production.yml

View workflow run for this annotation

GitHub Actions / Production Deployment

Invalid workflow file

The workflow is not valid. .github/workflows/production.yml (Line: 21, Col: 3): Error calling workflow 'StanfordBDHG/ENGAGE-HF-Firebase/.github/workflows/deployment.yml@488c829a19774ff4671510bab9b102b2a56d67fe'. The nested job 'buildandtest' is requesting 'checks: write', but is only allowed 'checks: none'.

Check failure on line 21 in .github/workflows/production.yml

View workflow run for this annotation

GitHub Actions / Production Deployment

Invalid workflow file

The workflow is not valid. .github/workflows/production.yml (Line: 21, Col: 3): Error calling workflow 'StanfordBDHG/ENGAGE-HF-Firebase/.github/workflows/deployment.yml@488c829a19774ff4671510bab9b102b2a56d67fe'. The nested job 'buildandtest' is requesting 'checks: write', but is only allowed 'checks: none'.

Check failure on line 21 in .github/workflows/production.yml

View workflow run for this annotation

GitHub Actions / Production Deployment

Invalid workflow file

The workflow is not valid. .github/workflows/production.yml (Line: 21, Col: 3): Error calling workflow 'StanfordBDHG/ENGAGE-HF-Firebase/.github/workflows/deployment.yml@488c829a19774ff4671510bab9b102b2a56d67fe'. The nested job 'buildandtest' is requesting 'checks: write', but is only allowed 'checks: none'.
name: Production Deployment
uses: ./.github/workflows/deployment.yml
permissions:
contents: read
actions: read
security-events: write
secrets: inherit
with:
environment: production
publishpackage:
name: Publish Package
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
packages: write
defaults:
run:
working-directory: ./functions/models
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22.x'
cache-dependency-path: ./functions/models/package-lock.json
registry-url: 'https://registry.npmjs.org'
scope: '@stanfordbdhg'
- name: Clean Install
run: npm ci
- name: Set version
run: npm version ${{ github.event.release.tag_name }}
- name: Build
run: npm run build
- name: Publish
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}