Skip to content

Commit 8d81bee

Browse files
authored
Merge pull request #31 from cloudcome/feat/v0.x
fix: publish 条件 5
2 parents ef1c8cf + 61bc4ab commit 8d81bee

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,14 @@ jobs:
1919
token: ${{ secrets.GITHUB_TOKEN }}
2020
release-type: node
2121
bump-minor-pre-major: true
22-
publish:
23-
runs-on: ubuntu-latest
24-
needs: release
25-
if: needs.release.steps.release.outputs.release_created
26-
steps:
2722
- uses: actions/checkout@v3
23+
if: ${{ steps.release.outputs.release_created }}
2824
- uses: actions/setup-node@v3
25+
if: ${{ steps.release.outputs.release_created }}
2926
with:
3027
node-version: 18
3128
cache: npm
32-
- run: npm ci
33-
- run: npm run build
34-
- run: npm publish
29+
- run: npm ci && npm run build && npm publish
30+
if: ${{ steps.release.outputs.release_created }}
3531
env:
3632
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)