Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit da61183

Browse files
committed
feat: automate npm publishing
1 parent df2161e commit da61183

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/release-please.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,17 @@ jobs:
77
release-please:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: GoogleCloudPlatform/release-please-action@v2
10+
- id: release
11+
uses: GoogleCloudPlatform/release-please-action@v2
1112
with:
1213
token: ${{ secrets.GITHUB_TOKEN }}
1314
release-type: node
1415
package-name: mikro-orm-entity-factory
16+
- id: publish
17+
if: ${{ steps.release.outputs.release_created }}
18+
uses: JS-DevTools/npm-publish@v1
19+
with:
20+
token: ${{ secrets.NPM_TOKEN }}
21+
- if: steps.publish.outputs.type != 'none'
22+
run: |
23+
echo "Version changed: ${{ steps.publish.outputs.old-version }} => ${{ steps.publish.outputs.version }}"

0 commit comments

Comments
 (0)