Skip to content

Commit

Permalink
fix pipeline publish-npm node ver
Browse files Browse the repository at this point in the history
  • Loading branch information
paullobofynd committed Oct 21, 2024
1 parent 715b107 commit 07d930b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 10 deletions.
29 changes: 21 additions & 8 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- master-old
workflow_dispatch:

permissions:
contents: write
jobs:
Expand Down Expand Up @@ -61,21 +62,33 @@ jobs:

- name: Set Remote URL
run: |
git remote set-url origin https://github.com/gofynd/nitrozen-vue
- name: Stage changes
run: git add .
git remote set-url origin https://github.com/${{ github.repository }}.git
- name: Sync changes
run: git pull

- name: Create new branch
run: git checkout -b pipeline---update

- name: Commit changes
run: |
git add package.json
git commit -m "[Auto] Publish changes to NPM ::: bump version to $(npm version patch)"
git add . && git commit -m "[Auto] Publish changes to NPM ::: bump version to $(npm version patch)"
- name: Push changes to new branch
run: git push origin pipeline---update

- name: Create Pull Request
run: gh pr create --base master-old --head pipeline---update --title "Automated PR" --body "Auto Created by npm publish pipeline"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Merge PR (optional)
run: gh pr merge pipeline---update --squash --delete-branch
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}




- name: Push changes
run: git push


2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Nitrozen Design for Vue (Enhanced)
# Nitrozen Design for Vue (Improved)

[![npm version](https://badge.fury.io/js/%40gofynd%2Fnitrozen-vue.svg)](https://badge.fury.io/js/%40gofynd%2Fnitrozen-vue)
[![Netlify Status](https://api.netlify.com/api/v1/badges/fc6557a3-7a3f-45c3-be9d-53bdd12f6dcf/deploy-status)](https://nitrozen.netlify.app/)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gofynd/nitrozen-vue",
"version": "0.0.48",
"version": "0.0.49",
"description": "Fynd Design Library for Vue",
"homepage": "https://github.com/gofynd/nitrozen-vue#readme",
"license": "MIT",
Expand Down

0 comments on commit 07d930b

Please sign in to comment.