Skip to content

Commit b88ebdc

Browse files
committed
chore: fix release-please
1 parent 6863faf commit b88ebdc

File tree

2 files changed

+18
-23
lines changed

2 files changed

+18
-23
lines changed

.github/workflows/npm-publish.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/release-please.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,21 @@ jobs:
1313
release-type: node
1414
package-name: "@easyops-cn/brick-next-pipes"
1515
bump-minor-pre-major: true
16+
# The logic below handles the npm publication:
17+
- uses: actions/checkout@v2
18+
# these if statements ensure that a publication only occurs when
19+
# a new release is created:
20+
if: ${{ steps.release.outputs.release_created }}
21+
- uses: actions/setup-node@v1
22+
with:
23+
node-version: 14
24+
registry-url: 'https://registry.npmjs.org'
25+
if: ${{ steps.release.outputs.release_created }}
26+
- run: npm ci
27+
if: ${{ steps.release.outputs.release_created }}
28+
- run: npm run build
29+
if: ${{ steps.release.outputs.release_created }}
30+
- run: npm publish
31+
env:
32+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
33+
if: ${{ steps.release.outputs.release_created }}

0 commit comments

Comments
 (0)