|
1 | 1 | name: npm publish |
2 | 2 |
|
3 | 3 | on: |
4 | | - # For staging releases |
5 | | - workflow_dispatch: |
6 | | - # For latest releases |
7 | | - release: |
8 | | - types: [published] |
| 4 | + # For staging releases |
| 5 | + workflow_dispatch: |
| 6 | + # For latest releases |
| 7 | + release: |
| 8 | + types: [published] |
9 | 9 |
|
10 | 10 | permissions: |
11 | | - id-token: write # Required for OIDC |
12 | | - packages: write |
13 | | - contents: read |
| 11 | + id-token: write # Required for OIDC |
| 12 | + packages: write |
| 13 | + contents: read |
14 | 14 |
|
15 | 15 | jobs: |
16 | | - compute-staging-version: |
17 | | - # Only run for manual dispatch (staging) |
18 | | - if: github.event_name == 'workflow_dispatch' |
19 | | - uses: ./.github/workflows/reusable-compute-staging-version.yml |
| 16 | + compute-staging-version: |
| 17 | + # Only run for manual dispatch (staging) |
| 18 | + if: github.event_name == 'workflow_dispatch' |
| 19 | + uses: ./.github/workflows/reusable-compute-staging-version.yml |
20 | 20 |
|
21 | | - npm-publish-staging: |
22 | | - # Only run for manual dispatch (staging) |
23 | | - if: github.event_name == 'workflow_dispatch' |
24 | | - uses: ./.github/workflows/reusable-npm.yml |
25 | | - needs: [compute-staging-version] |
26 | | - with: |
27 | | - version: ${{ needs.compute-staging-version.outputs.version }} |
28 | | - tag: ${{ needs.compute-staging-version.outputs.dist-tag }} |
| 21 | + npm-publish-staging: |
| 22 | + # Only run for manual dispatch (staging) |
| 23 | + if: github.event_name == 'workflow_dispatch' |
| 24 | + uses: ./.github/workflows/reusable-npm.yml |
| 25 | + needs: [compute-staging-version] |
| 26 | + with: |
| 27 | + version: ${{ needs.compute-staging-version.outputs.version }} |
| 28 | + tag: ${{ needs.compute-staging-version.outputs.dist-tag }} |
29 | 29 |
|
30 | | - npm-publish-latest: |
31 | | - # Only run for release published (latest) |
32 | | - if: github.event_name == 'release' |
33 | | - uses: ./.github/workflows/reusable-npm.yml |
34 | | - with: |
35 | | - tag: latest |
| 30 | + npm-publish-latest: |
| 31 | + # Only run for release published (latest) |
| 32 | + if: github.event_name == 'release' |
| 33 | + uses: ./.github/workflows/reusable-npm.yml |
| 34 | + with: |
| 35 | + tag: latest |
0 commit comments