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