Skip to content

Commit 714c1ad

Browse files
Merge pull request #6 from volatilization/feature/add-github-publish-npm
update github action to publication releases
2 parents be2dbf5 + 238af33 commit 714c1ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/npm-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Publish release
22

33
on:
44
release:
5-
types: [created]
5+
types: [published]
66

77
jobs:
88
publish-npm:
@@ -15,5 +15,5 @@ jobs:
1515
registry-url: https://registry.npmjs.org/
1616
- run: npm run publish
1717
env:
18-
RELEASE: ${GITHUB_REF#refs/heads/release/}
18+
RELEASE: ${{github.event.release.name}}
1919
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)