Skip to content

Commit faed7f0

Browse files
authored
Update npm-publish.yml
1 parent 18fb0cd commit faed7f0

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

.github/workflows/npm-publish.yml

+16-9
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,19 @@ jobs:
1414
uses: actions/setup-node@master
1515
with:
1616
node-version: 18.0.0
17-
- name: Publish if version has been updated
18-
uses: Rexogamer/npm-publish-action@99edcbddc04403efe904d1ad125c867d4dcabdcd
19-
with: # All of theses inputs are optional
20-
tag_name: "%s"
21-
tag_message: "%s"
22-
commit_pattern: "^Release (\\S+)"
23-
env: # More info about the environment variables in the README
24-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Leave this as is, it's automatically generated
25-
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} # You need to set this in your repo settings
17+
- id: publish
18+
uses: JS-DevTools/npm-publish@v1
19+
with:
20+
token: ${{ secrets.NPM_AUTH_TOKEN }}
21+
- name: Create Release
22+
if: steps.publish.outputs.type != 'none'
23+
id: create_release
24+
uses: actions/create-release@v1
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
with:
28+
tag_name: ${{ steps.publish.outputs.version }}
29+
release_name: Release ${{ steps.publish.outputs.version }}
30+
body: ${{ steps.publish.outputs.version }}
31+
draft: false
32+
prerelease: false

0 commit comments

Comments
 (0)