Skip to content

Publish Node.js Package #44

Publish Node.js Package

Publish Node.js Package #44

Workflow file for this run

# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
name: Publish Node.js Package
on:
release:
types: [published]
workflow_dispatch:
inputs:
node_version:
description: 'Node version to use'
required: true
default: '20'
registry_url:
description: 'NPM registry URL'
required: true
default: 'https://registry.npmjs.org/'
scope:
description: 'Scope for npm package'
required: false
default: 'openimis'
access:
description: 'Access level for npm package'
required: false
default: 'public'
tab:
required: true
jobs:
call-npm-publish-workflow:
uses: openimis/openimis-fe_js/.github/workflows/module-npmpublish.yml@feature/central-publish-workflow

Check failure on line 32 in .github/workflows/npmpublish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/npmpublish.yml

Invalid workflow file

error parsing called workflow ".github/workflows/npmpublish.yml" -> "openimis/openimis-fe_js/.github/workflows/module-npmpublish.yml@feature/central-publish-workflow" : failed to fetch workflow: reference to workflow should be either a valid branch, tag, or commit
with:
registry_url: 'https://registry.npmjs.org/'
node_version: ${{ github.event.inputs.node_version:-'20' }}
access: ${{ github.event.inputs.access:-'public' }}
scope: ${{ github.event.inputs.scope:-'openimis' }}
tag: ${{ github.event.inputs.tag }}
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
call-gpr-publish-workflow:
uses: openimis/openimis-fe_js/.github/workflows/module-npmpublish.yml@feature/central-publish-workflow
with:
registry_url: 'https://npm.pkg.github.com/'
node_version: ${{ github.event.inputs.node_version:-'20' }}
access: ${{ github.event.inputs.access:-'public' }}
scope: ${{ github.event.inputs.scope:-'openimis' }}
tag: ${{ github.event.inputs.tag }}
secrets:
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}