Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: "22"
registry-url: 'https://registry.npmjs.org'
- name: Install pnpm
run: npm install -g pnpm@latest
- name: Install dependencies
Expand All @@ -38,19 +39,21 @@ jobs:
- name: Bump pre-release version
run: pnpm run release --prerelease beta
if: ${{ github.event.inputs.pre_release == 'true' }}
- name: Commit and push schemas
run: |
git push origin dev --tags
- name: Publish
run: npm publish
run: npm publish --provenance --access public
if: ${{ github.event.inputs.pre_release == 'false' }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish pre-release
run: npm publish --tag next
run: npm publish --provenance --access public --tag next
if: ${{ github.event.inputs.pre_release == 'true' }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Merge source branch into main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git push origin dev --tags
git fetch origin
git checkout main
git merge dev
Expand Down
Loading