Mirror: TypeScript LSP plugin that finds GraphQL documents in your code and provides diagnostics, auto-complete and hover-information.

chore: Add prereleases to GitHub workflow (#306)

Changed files
+22 -1
.changeset
.github
workflows
+10 -1
.changeset/config.json
···
"commit": false,
"access": "public",
"baseBranch": "main",
-
"ignore": ["example", "fixtures"]
+
"ignore": ["example", "fixtures"],
+
"updateInternalDependencies": "minor",
+
"snapshot": {
+
"prereleaseTemplate": "{tag}-{commit}",
+
"useCalculatedVersion": true
+
},
+
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
+
"onlyUpdatePeerDependentsWhenOutOfRange": true,
+
"updateInternalDependents": "out-of-range"
+
}
}
+12
.github/workflows/release.yaml
···
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
+
+
- name: Publish Prerelease
+
if: steps.changesets.outputs.published != 'true'
+
continue-on-error: true
+
env:
+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+
run: |
+
npm config set "//registry.npmjs.org/:_authToken" "$NPM_TOKEN"
+
git reset --hard origin/main
+
pnpm changeset version --no-git-tag --snapshot canary
+
pnpm changeset publish --no-git-tag --snapshot canary --tag canary