Skip to content

Commit

Permalink
Update npmpublish.yml
Browse files Browse the repository at this point in the history
Change event listener to publishing a release instead of creating a release.
  • Loading branch information
BeckyWu220 committed Mar 27, 2020
1 parent cff40b8 commit 8693ae4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: Release
name: Release NPM Package

on:
release:
types: [created]
types: [published]

jobs:
build:
Expand All @@ -15,7 +15,7 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm ci
- run: npm install
- run: npm test

publish-npm:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@twotalltotems/react-native-otp-input",
"version": "1.2.2",
"version": "1.2.3",
"description": "is a tiny JS library for one time passcode (OTP). Supports smart input suggestion on iOS and code autofill on Android (it will be filled when you press the copy button on the SMS notification bar)",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 8693ae4

Please sign in to comment.