Skip to content

Commit 060aa29

Browse files
committed
fix(ghaction): update github action for publishing npm packages
1 parent 88cb52a commit 060aa29

1 file changed

Lines changed: 11 additions & 15 deletions

File tree

.github/workflows/npmpublish.yml

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,30 +25,26 @@ on:
2525
required: false
2626
default: 'public'
2727
tag:
28-
description: 'Dist-tag (latest, next, beta...)'
2928
required: true
30-
default: 'latest'
3129

3230
jobs:
33-
npmjs:
31+
call-npm-publish-workflow:
3432
uses: openimis/openimis-fe_js/.github/workflows/module-npmpublish.yml@develop
3533
with:
36-
registry_url: ${{ inputs.registry_url || 'https://registry.npmjs.org/' }}
37-
node_version: ${{ inputs.node_version || '20' }}
38-
scope: ${{ inputs.scope || 'openimis' }}
39-
access: ${{ inputs.access || 'public' }}
40-
tag: ${{ inputs.tag || 'latest' }}
34+
registry_url: 'https://registry.npmjs.org/'
35+
node_version: ${{ github.event.inputs.node_version || '20' }}
36+
access: ${{ github.event.inputs.access || 'public' }}
37+
scope: ${{ github.event.inputs.scope || 'openimis' }}
38+
tag: ${{ github.event.inputs.tag }}
4139
secrets:
4240
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
43-
44-
gpr:
45-
needs: npmjs
41+
call-gpr-publish-workflow:
4642
uses: openimis/openimis-fe_js/.github/workflows/module-npmpublish.yml@develop
4743
with:
4844
registry_url: 'https://npm.pkg.github.com/'
49-
node_version: ${{ inputs.node_version || '20' }}
50-
scope: ${{ inputs.scope || 'openimis' }}
51-
access: ${{ inputs.access || 'public' }}
52-
tag: ${{ inputs.tag || 'latest' }}
45+
node_version: ${{ github.event.inputs.node_version || '20' }}
46+
access: ${{ github.event.inputs.access || 'public' }}
47+
scope: ${{ github.event.inputs.scope || 'openimis' }}
48+
tag: ${{ github.event.inputs.tag }}
5349
secrets:
5450
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)