Skip to content

Commit c3d88d2

Browse files
committed
fix: publish
1 parent 894ea6d commit c3d88d2

1 file changed

Lines changed: 16 additions & 12 deletions

File tree

.github/workflows/npmpublish.yml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,27 +24,31 @@ on:
2424
description: 'Access level for npm package'
2525
required: false
2626
default: 'public'
27-
tab:
27+
tag:
28+
description: 'Dist-tag (latest, next, beta...)'
2829
required: true
30+
default: 'latest'
2931

3032
jobs:
31-
call-npm-publish-workflow:
33+
npmjs:
3234
uses: openimis/openimis-fe_js/.github/workflows/module-npmpublish.yml@develop
3335
with:
34-
registry_url: 'https://registry.npmjs.org/'
35-
node_version: ${{ github.event.inputs.node_version }}
36-
access: ${{ github.event.inputs.access }}
37-
scope: ${{ github.event.inputs.scope }}
38-
tag: ${{ github.event.inputs.tag }}
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' }}
3941
secrets:
4042
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
41-
call-gpr-publish-workflow:
43+
44+
gpr:
45+
needs: npmjs
4246
uses: openimis/openimis-fe_js/.github/workflows/module-npmpublish.yml@develop
4347
with:
4448
registry_url: 'https://npm.pkg.github.com/'
45-
node_version: ${{ github.event.inputs.node_version }}
46-
access: ${{ github.event.inputs.access }}
47-
scope: ${{ github.event.inputs.scope }}
48-
tag: ${{ github.event.inputs.tag }}
49+
node_version: ${{ inputs.node_version || '20' }}
50+
scope: ${{ inputs.scope || 'openimis' }}
51+
access: ${{ inputs.access || 'public' }}
52+
tag: ${{ inputs.tag || 'latest' }}
4953
secrets:
5054
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)