Skip to content

Commit

Permalink
run release script if specified for non npm releases
Browse files Browse the repository at this point in the history
  • Loading branch information
acao committed Jun 5, 2022
1 parent 94f4876 commit cf092f5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/violet-peaches-compete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'graphql-language-service-server': patch
---

No longer load dotenv in the LSP server
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"prepublishOnly": "./scripts/prepublish.sh",
"pretty": "node scripts/pretty.js",
"pretty-check": "node scripts/pretty.js --check",
"release": "yarn build && yarn build-bundles && yarn changeset publish",
"release": "yarn build && yarn build-bundles && (wsrun release --exclude-missing --serial --recursive --changedSince main || true) && yarn changeset publish",
"release:canary": "(node scripts/canary-release.js && yarn build && yarn build-bundles && yarn changeset publish --tag canary) || echo Skipping Canary...",
"repo:lint": "manypkg check",
"repo:fix": "manypkg fix",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,6 @@ const writeFileAsync = promisify(writeFile);
const configDocLink =
'https://www.npmjs.com/package/graphql-language-service-server#user-content-graphql-configuration-file';

// import dotenv config as early as possible for graphql-config cjs pattern
require('dotenv').config();

type CachedDocumentType = {
version: number;
contents: CachedContent[];
Expand Down
4 changes: 0 additions & 4 deletions scripts/prepublish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,3 @@ if [ "$CI" != true ]; then
fi;

yarn lint && yarn build && yarn build-bundles && yarn test && yarn e2e;

# attempt a release against vscode-graphql and any workspace that specifies 'release'
# if semantic release incremented the version it will publish
(wsrun -m -s release --changedSince main || true);

0 comments on commit cf092f5

Please sign in to comment.