From 867f197b290121fcaf2d3ddc948d45ef8b4c9af6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mustafa=20Arda=20D=C3=BC=C5=9Fova?= Date: Fri, 20 Sep 2024 12:36:18 +0300 Subject: [PATCH] =?UTF-8?q?NPM=20Mod=C3=BCl=20Payla=C5=9Fma?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/npm-publish.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/npm-publish.yml diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml new file mode 100644 index 0000000..69d69b7 --- /dev/null +++ b/.github/workflows/npm-publish.yml @@ -0,0 +1,28 @@ +name: Publish to npm + +on: + push: + branches: + - main + +jobs: + publish: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: '14' + + - name: Login to npm + run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc + + - name: Install dependencies + run: npm install + + - name: Publish to npm + run: npm publish