|
25 | 25 | required: false |
26 | 26 | default: 'public' |
27 | 27 | tag: |
28 | | - description: 'Dist-tag (latest, next, beta...)' |
29 | 28 | required: true |
30 | | - default: 'latest' |
31 | 29 |
|
32 | 30 | jobs: |
33 | | - npmjs: |
| 31 | + call-npm-publish-workflow: |
34 | 32 | uses: openimis/openimis-fe_js/.github/workflows/module-npmpublish.yml@develop |
35 | 33 | 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 }} |
41 | 39 | secrets: |
42 | 40 | NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
43 | | - |
44 | | - gpr: |
45 | | - needs: npmjs |
| 41 | + call-gpr-publish-workflow: |
46 | 42 | uses: openimis/openimis-fe_js/.github/workflows/module-npmpublish.yml@develop |
47 | 43 | with: |
48 | 44 | 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 }} |
53 | 49 | secrets: |
54 | 50 | NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
0 commit comments