Skip to content

Commit d0c5dee

Browse files
committed
created publish automotion workflow
1 parent 83639fa commit d0c5dee

File tree

2 files changed

+33
-2
lines changed

2 files changed

+33
-2
lines changed

.github/workflows/publish.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish to NPM
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout Repo
14+
uses: actions/checkout@v4
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: 18.18
20+
registry-url: "https://registry.npmjs.org/"
21+
22+
- name: Install Dependencies
23+
run: npm install
24+
25+
- name: Build Package
26+
run: npm run build
27+
28+
- name: Publish to NPM
29+
run: npm publish --access public
30+
env:
31+
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "memofy",
3-
"version": "1.0.8",
2+
"name": "@ahmetilhn/memofy",
3+
"version": "1.1.0",
44
"description": "Prevents re-execution of large javascript functions that have been processed once with the same parameter.",
55
"main": "build/index.js",
66
"types": "build/index.d.ts",

0 commit comments

Comments
 (0)