Skip to content

Commit

Permalink
NPM Modül Paylaşma
Browse files Browse the repository at this point in the history
  • Loading branch information
madtethys authored Sep 20, 2024
1 parent 0642dfb commit 867f197
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 867f197

Please sign in to comment.