Skip to content

Commit 88fd9ce

Browse files
committed
fix: ci
1 parent 681bf87 commit 88fd9ce

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,11 @@ jobs:
4242
- name: Write version
4343
run: |
4444
VERSION=$(yq '.info.version' openapi.yaml | tr -d '"')
45-
jq --arg version "$VERSION" '.version = $version' package.json > tmp.$$.json && mv tmp.$$.json package.json
46-
47-
- name: Set up .npmrc
48-
run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
49-
env:
50-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
45+
jq --arg version "${VERSION}.alpha.0" '.version = $version' package.json > tmp.$$.json && mv tmp.$$.json package.json
5146
5247
- name: Release
53-
run: pnpm publish --tag next --publish-branch v2 --no-git-checks
48+
run: |
49+
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
50+
pnpm publish --tag next --publish-branch v2 --no-git-checks
51+
env:
52+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)