Skip to content

Commit 254663d

Browse files
Merge pull request #2 from rully-saputra15/feat/workflow
feat: npm publish github actions
2 parents fedc975 + 8385f24 commit 254663d

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

.github/workflows/npm-publish.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
on:
2+
push:
3+
branches: main
4+
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- uses: actions/setup-node@v3
11+
with:
12+
node-version: "18"
13+
- run: npm ci
14+
- uses: JS-DevTools/npm-publish@v3
15+
with:
16+
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-render-helper",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "Simplify your conditional rendering within React with elegance and intuitiveness with ease.",
55
"scripts": {
66
"test": "echo \"Error: no test specified\" && exit 1",

0 commit comments

Comments
 (0)