vscode-apollo 1.20.0 → 1.20.2
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/build-prs.yml +57 -0
- package/.github/workflows/release.yml +20 -1
- package/CHANGELOG.md +12 -0
- package/package.json +2 -2
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
name: Bundle Extension as Artifact Download
|
|
2
|
+
on:
|
|
3
|
+
pull_request:
|
|
4
|
+
jobs:
|
|
5
|
+
test:
|
|
6
|
+
name: Bundle Extension as Artifact Download
|
|
7
|
+
runs-on: ubuntu-latest
|
|
8
|
+
steps:
|
|
9
|
+
- uses: actions/checkout@v4
|
|
10
|
+
- uses: actions/setup-node@v4
|
|
11
|
+
with:
|
|
12
|
+
cache: "npm"
|
|
13
|
+
- run: npm config set engine-strict=false
|
|
14
|
+
- run: npm install
|
|
15
|
+
- run: echo PKG_VERSION="$(git show --no-patch --format=0.0.0-build-%ct.pr-${{ github.event.pull_request.number }}.commit-%h)" >> $GITHUB_ENV
|
|
16
|
+
- run: npm pkg set "version=${{ env.PKG_VERSION }}"
|
|
17
|
+
- run: npm run build
|
|
18
|
+
- run: npx -y @vscode/vsce package --out vscode-apollo-${{ env.PKG_VERSION }}.vsix
|
|
19
|
+
|
|
20
|
+
- uses: actions/upload-artifact@v4
|
|
21
|
+
id: artifact-upload-step
|
|
22
|
+
with:
|
|
23
|
+
name: vscode-apollo-${{ env.PKG_VERSION }}
|
|
24
|
+
path: vscode-apollo-${{ env.PKG_VERSION }}.vsix
|
|
25
|
+
retention-days: 14
|
|
26
|
+
|
|
27
|
+
- name: Output artifact URL
|
|
28
|
+
run: echo 'Artifact URL is ${{ steps.artifact-upload-step.outputs.artifact-url }}'
|
|
29
|
+
|
|
30
|
+
- name: Find Comment
|
|
31
|
+
uses: peter-evans/find-comment@v3
|
|
32
|
+
id: fc
|
|
33
|
+
with:
|
|
34
|
+
issue-number: ${{ github.event.pull_request.number }}
|
|
35
|
+
comment-author: "github-actions[bot]"
|
|
36
|
+
body-includes: <!-- ARTIFACT-DOWNLOAD -->
|
|
37
|
+
|
|
38
|
+
- name: Create comment
|
|
39
|
+
uses: peter-evans/create-or-update-comment@v4
|
|
40
|
+
with:
|
|
41
|
+
issue-number: ${{ github.event.pull_request.number }}
|
|
42
|
+
comment-id: ${{ steps.fc.outputs.comment-id }}
|
|
43
|
+
edit-mode: replace
|
|
44
|
+
body: |
|
|
45
|
+
<!-- ARTIFACT-DOWNLOAD -->
|
|
46
|
+
You can download the latest build of the extension for this PR here:
|
|
47
|
+
[vscode-apollo-${{ env.PKG_VERSION }}.zip](${{ steps.artifact-upload-step.outputs.artifact-url }}).
|
|
48
|
+
|
|
49
|
+
To install the extension, download the file, unzip it and install it in VS Code by selecting "Install from VSIX..." in the Extensions view.
|
|
50
|
+
|
|
51
|
+
Alternatively, run
|
|
52
|
+
```sh
|
|
53
|
+
code --install-extension vscode-apollo-${{ env.PKG_VERSION }}.vsix --force
|
|
54
|
+
```
|
|
55
|
+
from the command line.
|
|
56
|
+
|
|
57
|
+
For older builds, please see the edit history of this comment.
|
|
@@ -4,6 +4,7 @@ on:
|
|
|
4
4
|
push:
|
|
5
5
|
branches:
|
|
6
6
|
- main
|
|
7
|
+
- v1.x
|
|
7
8
|
|
|
8
9
|
concurrency: ${{ github.workflow }}-${{ github.ref }}
|
|
9
10
|
|
|
@@ -47,6 +48,8 @@ jobs:
|
|
|
47
48
|
with:
|
|
48
49
|
node-version: 18.x
|
|
49
50
|
|
|
51
|
+
- run: npm config set engine-strict=false
|
|
52
|
+
|
|
50
53
|
- name: Install dependencies
|
|
51
54
|
run: npm ci
|
|
52
55
|
|
|
@@ -61,6 +64,22 @@ jobs:
|
|
|
61
64
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
62
65
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
63
66
|
|
|
67
|
+
- name: Attach VSX to GitHub release
|
|
68
|
+
if: steps.changesets.outcome == 'success' && steps.changesets.outputs.published == 'true'
|
|
69
|
+
run: |
|
|
70
|
+
npx -y @vscode/vsce package --out "vscode-apollo-$VERSION.vsix"
|
|
71
|
+
gh release upload "v$VERSION" "vscode-apollo-$VERSION.vsix"
|
|
72
|
+
env:
|
|
73
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
74
|
+
VERSION: ${{ fromJson(steps.changesets.outputs.publishedPackages)[0].version }}
|
|
75
|
+
|
|
76
|
+
- name: Publish to Open VSX Registry
|
|
77
|
+
if: steps.changesets.outcome == 'success' && steps.changesets.outputs.published == 'true'
|
|
78
|
+
uses: HaaLeo/publish-vscode-extension@v1
|
|
79
|
+
with:
|
|
80
|
+
pat: ${{ secrets.OPEN_VSX_TOKEN }}
|
|
81
|
+
baseContentUrl: https://raw.githubusercontent.com/apollographql/vscode-graphql
|
|
82
|
+
|
|
64
83
|
- name: Publish to Visual Studio Marketplace
|
|
65
84
|
if: steps.changesets.outcome == 'success' && steps.changesets.outputs.published == 'true'
|
|
66
85
|
uses: HaaLeo/publish-vscode-extension@v1
|
|
@@ -86,7 +105,7 @@ jobs:
|
|
|
86
105
|
"type": "section",
|
|
87
106
|
"text": {
|
|
88
107
|
"type": "mrkdwn",
|
|
89
|
-
"text": "A new version of `vscode-apollo` was released: <https://github.com/apollographql/vscode-
|
|
108
|
+
"text": "A new version of `vscode-apollo` was released: <https://github.com/apollographql/vscode-graphql/releases/tag/v${{ fromJson(steps.changesets.outputs.publishedPackages)[0].version }}|v${{ fromJson(steps.changesets.outputs.publishedPackages)[0].version }}> :rocket:"
|
|
90
109
|
}
|
|
91
110
|
}
|
|
92
111
|
]
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 1.20.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`9ac0de95`](https://github.com/apollographql/vscode-graphql/commit/9ac0de95771b0781170def04bfd86b00b11e2324) Thanks [@phryneas](https://github.com/phryneas)! - Adjustments to fix Release process
|
|
8
|
+
|
|
9
|
+
## 1.20.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#270](https://github.com/apollographql/vscode-graphql/pull/270) [`efdbe28a`](https://github.com/apollographql/vscode-graphql/commit/efdbe28a22fd9f309ebea34df9c7bb0716f9e729) Thanks [@github-actions](https://github.com/apps/github-actions)! - Republish 1.20 to Marketplace
|
|
14
|
+
|
|
3
15
|
## 1.20.0
|
|
4
16
|
|
|
5
17
|
### 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": "1.20.
|
|
5
|
+
"version": "1.20.2",
|
|
6
6
|
"referenceID": "87197759-7617-40d0-b32e-46d378e907c7",
|
|
7
7
|
"author": "Apollo GraphQL <opensource@apollographql.com>",
|
|
8
8
|
"license": "MIT",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"build": "tsc --build tsconfig.build.json",
|
|
19
19
|
"build:clean": "npm run build -- --clean",
|
|
20
20
|
"watch": "npm run build -- --watch",
|
|
21
|
-
"postinstall": "
|
|
21
|
+
"postinstall": "curl https://raw.githubusercontent.com/Microsoft/vscode/c6e592b2b5770e40a98cb9c2715a8ef89aec3d74/src/vs/vscode.d.ts -o node_modules/vscode/vscode.d.ts",
|
|
22
22
|
"changeset-version": "changeset version && npm ci --ignore-scripts",
|
|
23
23
|
"changeset-publish": "npm run build && changeset publish",
|
|
24
24
|
"typecheck": "tsc --noEmit",
|