vscode-apollo 2.6.0 → 2.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/release.yml +2 -2
- package/CHANGELOG.md +6 -0
- package/package.json +3 -3
- package/syntaxes/publish.sh +43 -0
|
@@ -42,10 +42,10 @@ jobs:
|
|
|
42
42
|
env:
|
|
43
43
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
44
44
|
|
|
45
|
-
- name: Setup Node.js
|
|
45
|
+
- name: Setup Node.js 24.x
|
|
46
46
|
uses: actions/setup-node@v3
|
|
47
47
|
with:
|
|
48
|
-
node-version:
|
|
48
|
+
node-version: 24.x
|
|
49
49
|
|
|
50
50
|
- name: Install dependencies
|
|
51
51
|
run: npm ci
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 2.6.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`a88eea8`](https://github.com/apollographql/vscode-graphql/commit/a88eea86b4a38af6b2edc8d82361b301e051e424) Thanks [@phryneas](https://github.com/phryneas)! - Adjust publish command and trigger re-publish
|
|
8
|
+
|
|
3
9
|
## 2.6.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "vscode-apollo",
|
|
3
3
|
"displayName": "Apollo GraphQL",
|
|
4
4
|
"description": "Rich editor support for GraphQL client and server development that seamlessly integrates with the Apollo platform",
|
|
5
|
-
"version": "2.6.
|
|
5
|
+
"version": "2.6.1",
|
|
6
6
|
"referenceID": "87197759-7617-40d0-b32e-46d378e907c7",
|
|
7
7
|
"author": "Apollo GraphQL <opensource@apollographql.com>",
|
|
8
8
|
"license": "MIT",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"types": "lib/index.d.ts",
|
|
17
17
|
"scripts": {
|
|
18
18
|
"build": "node ./src/build.js",
|
|
19
|
-
"build:full": "npm run typecheck && rimraf lib
|
|
19
|
+
"build:full": "npm run typecheck && rimraf lib && npm run build:textmate && npm run build --",
|
|
20
20
|
"build:production": "npm run build:full -- --production",
|
|
21
21
|
"build:textmate": "node ./syntaxes/build.ts",
|
|
22
22
|
"watch": "rimraf lib; npm-run-all -p watch:*",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"watch:textmate-yaml": "npm run build:textmate -- --debug --watch",
|
|
26
26
|
"sampleWorkspace:run": "node src/__e2e__/mockServer.js",
|
|
27
27
|
"changeset-version": "changeset version && npm i",
|
|
28
|
-
"changeset-publish": "npm run build
|
|
28
|
+
"changeset-publish": "npm run build:production && changeset publish",
|
|
29
29
|
"typecheck": "tsc --noEmit",
|
|
30
30
|
"lint": "eslint src --ext .ts",
|
|
31
31
|
"format": "prettier --write .",
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
set -x
|
|
3
|
+
|
|
4
|
+
if ! git diff --cached --exit-code; then
|
|
5
|
+
echo "There are uncommitted changes. Please commit or stash them before running this script."
|
|
6
|
+
exit 1
|
|
7
|
+
fi
|
|
8
|
+
|
|
9
|
+
CURRENT=$(git branch --show-current)
|
|
10
|
+
CURRENT_HASH="ba347def950c46bc84971ae4aa47ab7622b2bbf6" #$(git rev-parse HEAD)
|
|
11
|
+
|
|
12
|
+
git remote add --no-tags publish-docs git@github.com:apollographql/docs-rewrite -t main || true
|
|
13
|
+
#git fetch publish-docs --depth 1
|
|
14
|
+
git switch -C publish-docs/$CURRENT_HASH publish-docs/main
|
|
15
|
+
|
|
16
|
+
update_file(){
|
|
17
|
+
|
|
18
|
+
if ! diff -q <(jq . <(git show $CURRENT_HASH:$1)) <(jq '.|del(._source)' < $2); then
|
|
19
|
+
echo "connectors.mapping.json has changed, updating..."
|
|
20
|
+
jq '{"_source":"https://github.com/apollographql/vscode-graphql/blob/'${CURRENT_HASH}'/'$1'"} + .' <(git show $CURRENT_HASH:$1) > $2
|
|
21
|
+
git add $2
|
|
22
|
+
else
|
|
23
|
+
echo "connectors.mapping.json is up to date."
|
|
24
|
+
fi
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
update_file syntaxes/connectors.mapping.json src/code-highlighting/grammars/connectors.mapping.json
|
|
28
|
+
|
|
29
|
+
git diff --cached --shortstat
|
|
30
|
+
update_file syntaxes/graphql.connectors.json src/code-highlighting/grammars/graphql.connectors.json
|
|
31
|
+
update_file syntaxes/graphql.json src/code-highlighting/grammars/graphql.json
|
|
32
|
+
|
|
33
|
+
git diff --cached --shortstat
|
|
34
|
+
|
|
35
|
+
if ! git diff --cached --exit-code; then
|
|
36
|
+
git commit -m "Update Syntax Highlighting\n source: https://github.com/apollographql/vscode-graphql/blob/${CURRENT_HASH}"
|
|
37
|
+
git push -u publish-docs publish-docs/$CURRENT_HASH:sync-vscode-graphql/$CURRENT_HASH
|
|
38
|
+
gh -R apollographql/docs-rewrite pr create --head sync-vscode-graphql/$CURRENT_HASH --title "Update Syntax Highlighting" --body "This PR updates the syntax highlighting files to match the latest changes in the vscode-graphql repository."
|
|
39
|
+
else
|
|
40
|
+
echo "No changes to commit."
|
|
41
|
+
fi
|
|
42
|
+
|
|
43
|
+
git switch $CURRENT
|