Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit d3e847f

Browse files
authored
Update main.yml
1 parent ebc5aee commit d3e847f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: NPM Autopublish
1+
name: NPM Publish and GITHUB Release
22

33
on:
44
push:
@@ -19,3 +19,13 @@ jobs:
1919
uses: JS-DevTools/npm-publish@v1
2020
with:
2121
token: ${{ secrets.NPM_TOKEN }}
22+
23+
- if: ${{ steps.publish.outputs.type != 'none' }}
24+
name: "Create GH Release"
25+
uses: "marvinpinto/action-automatic-releases@latest"
26+
with:
27+
repo_token: "${{ secrets.GITHUB_TOKEN }}"
28+
prerelease: false
29+
title: todoist-rest-client v.${{ steps.publish.outputs.version }}
30+
automatic_release_tag: ${{ steps.publish.outputs.version }}
31+

0 commit comments

Comments
 (0)