Skip to content

Commit f44dcbc

Browse files
committed
hopefully fix workflow
1 parent 825aaad commit f44dcbc

2 files changed

Lines changed: 6 additions & 12 deletions

File tree

.github/workflows/api-flow.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
- name: Checkout
5252
uses: actions/checkout@v6
5353
with:
54-
persist-credentials: false
54+
persist-credentials: true
5555

5656
- name: Setup pnpm
5757
uses: pnpm/action-setup@v6
@@ -75,18 +75,12 @@ jobs:
7575
cd packages/types
7676
7777
if [ "${{ steps.input-validation.outputs.prerelease }}" = "true" ]; then
78-
GIT_TAG=$(pnpm version ${{ inputs.increment }} --no-git-tag-version --preid ${{ inputs.preid }})
78+
pnpm version ${{ inputs.increment }} --tag-version-prefix "api-v" --preid ${{ inputs.preid }}
7979
else
80-
GIT_TAG=$(pnpm version ${{ inputs.increment }} --no-git-tag-version)
80+
pnpm version ${{ inputs.increment }} --tag-version-prefix "api-v"
8181
fi
8282
83-
VERSION=$(pnpm show ./ version)
84-
git add package.json
85-
git commit -nm "bump api to v$VERSION"
86-
git push
87-
88-
git tag "$GIT_TAG"
89-
git push --tags
83+
git push --follow-tags
9084
9185
- name: Publish types package
9286
run: |

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
env:
5757
NODE_ENV: 1
5858
run: |
59-
echo VERSION=$(pnpm show ./ version) >> $GITHUB_OUTPUT
59+
echo VERSION=$(pnpm pkg get version) >> $GITHUB_OUTPUT
6060
pnpm vsce package --no-dependencies
6161
6262
- name: Upload VSIX file
@@ -67,7 +67,7 @@ jobs:
6767

6868
- name: Commit and push version change
6969
run: |
70-
git push --follow-tags https://VSC-NeuroPilot:${{secrets.GITHUB_TOKEN}}:@github.com/VSC-NeuroPilot/neuropilot
70+
git push --follow-tags
7171
7272
- name: Update docs
7373
env:

0 commit comments

Comments
 (0)