Skip to content

Commit 437b036

Browse files
authored
Merge pull request #6 from nnolan-oss/dev
ci/cd: npm publish
2 parents be11ac1 + fe2f2f0 commit 437b036

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

.github/workflows/publish.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,31 @@ name: Publish Package
33
on:
44
push:
55
branches:
6-
- main # asosiy branch
6+
- main
77

88
jobs:
99
publish:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
# Repo klonlash
1413
- uses: actions/checkout@v4
1514

16-
# Node.js o‘rnatish
1715
- uses: actions/setup-node@v3
1816
with:
1917
node-version: 20
2018
registry-url: https://registry.npmjs.org
2119

22-
# npm token bilan login
2320
- run: npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
2421

25-
# Dependencies o‘rnatish
2622
- run: npm ci
2723

28-
# Test optional
29-
- run: npm test
24+
# Git identity sozlash
25+
- name: Set Git identity
26+
run: |
27+
git config --global user.name "nneo"
28+
git config --global user.email "javohirtech@gmail.com"
3029
31-
# Version update
30+
# Patch version
3231
- run: npm version patch
3332

3433
# Publish

0 commit comments

Comments
 (0)