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 Nov 11, 2024
1 parent dfb8081 commit dc827ff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 24 deletions.
31 changes: 8 additions & 23 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on:
branches:
- master-old
workflow_dispatch:

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

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

- name: Sync changes
run: git pull

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

- name: Commit changes
run: |
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.NITROZEN-VUE-NPM-TOKEN }}

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





git add package.json
git commit -m "[Auto] Publish changes to NPM ::: bump version to $(npm version patch)"
- name: Push changes
run: git push
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.50",
"version": "0.0.51",
"description": "Fynd Design Library for Vue",
"homepage": "https://github.com/gofynd/nitrozen-vue#readme",
"license": "MIT",
Expand Down

0 comments on commit dc827ff

Please sign in to comment.