Skip to content

Commit 9563a8d

Browse files
fix: format
1 parent 3ba7475 commit 9563a8d

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

.github/workflows/npm-publish.yml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
name: npm publish
22

33
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]
99

1010
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
1414

1515
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
2020

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 }}
2929

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

Comments
 (0)