From 07d930b5780c47b632a0b70121ee19a90b90010f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20Lobo=20=F0=9F=98=8E?= Date: Mon, 21 Oct 2024 16:44:17 +0530 Subject: [PATCH] fix pipeline publish-npm node ver --- .github/workflows/publish-npm.yml | 29 +++++++++++++++++++++-------- README.md | 2 +- package.json | 2 +- 3 files changed, 23 insertions(+), 10 deletions(-) diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml index 82d83a56..dd60d76b 100644 --- a/.github/workflows/publish-npm.yml +++ b/.github/workflows/publish-npm.yml @@ -5,6 +5,7 @@ on: branches: - master-old workflow_dispatch: + permissions: contents: write jobs: @@ -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 diff --git a/README.md b/README.md index d2e9a295..a4c711de 100644 --- a/README.md +++ b/README.md @@ -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/) diff --git a/package.json b/package.json index 133a6828..8855f0c6 100644 --- a/package.json +++ b/package.json @@ -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",