Skip to content

Commit 7c66840

Browse files
Test the flow
1 parent c19646d commit 7c66840

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

.github/workflows/publish.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3-
41
name: Node.js Package
52

3+
# on:
4+
# push:
5+
# branches: [ master ]
6+
# pull_request:
7+
# branches: [ master ]
68
on:
79
release:
810
types: [created]
911

1012
jobs:
11-
build-publish:
13+
build:
1214
runs-on: ubuntu-latest
1315
steps:
1416
- uses: actions/checkout@v2
@@ -17,6 +19,16 @@ jobs:
1719
node-version: 12
1820
- run: yarn
1921
- run: yarn build
22+
23+
publish-npm:
24+
needs: build
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v2
28+
- uses: actions/setup-node@v1
29+
with:
30+
node-version: 12
31+
registry-url: https://registry.npmjs.org/
2032
- run: npm publish
2133
env:
2234
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-user-guide",
3-
"version": "1.1.3",
3+
"version": "1.1.4",
44
"description": "React User Guide",
55
"author": "sandeshshrestha",
66
"license": "MIT",

0 commit comments

Comments
 (0)