Skip to content

Commit 65a17ed

Browse files
committed
fix: reorder npmrc setup and release steps in CI workflow
1 parent c598b03 commit 65a17ed

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ jobs:
4444
VERSION=$(yq '.info.version' openapi.yaml | tr -d '"')
4545
jq --arg version "$VERSION" '.version = $version' package.json > tmp.$$.json && mv tmp.$$.json package.json
4646
47-
- run: |
48-
pnpm publish --provenance --tag next --publish-branch v2 --no-git-checks
47+
- name: Set up .npmrc
48+
run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
4949
env:
50-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
50+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
51+
52+
- name: Release
53+
run: pnpm publish --provenance --tag next --publish-branch v2 --no-git-checks

0 commit comments

Comments
 (0)