Skip to content
This repository was archived by the owner on Jul 31, 2022. It is now read-only.

Commit 6d69112

Browse files
committed
add changesets
1 parent 6500c2b commit 6d69112

File tree

7 files changed

+3422
-154
lines changed

7 files changed

+3422
-154
lines changed

Diff for: .changeset/README.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

Diff for: .changeset/config.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": [
4+
"@changesets/changelog-github",
5+
{ "repo": "graphql/vscode-graphql" }
6+
],
7+
"commit": false,
8+
"access": "public",
9+
"baseBranch": "master"
10+
}

Diff for: .github/workflows/create-release.yml

+6-11
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,19 @@ on:
77

88
env:
99
GH_TOKEN: ${{ secrets.GH_TOKEN }}
10+
VSCE_PAT: ${{ secrets.VSCE_PAT }}
1011

1112
jobs:
12-
release:
13-
name: Create release
13+
prerelease:
14+
if: endsWith(github.ref, '/master')
15+
name: Create prerelease
1416
runs-on: ubuntu-latest
1517
steps:
1618
- uses: actions/checkout@v2
1719
- name: Install Dependencies
1820
run: npm ci
19-
- name: Setup GIT
20-
run: |
21-
git config --global user.email "[email protected]"
22-
git config --global user.name "Prismo"
23-
git remote add github "https://$GITHUB_ACTOR:[email protected]/$GITHUB_REPOSITORY.git" || true
21+
2422
- name: Bump version
2523
id: bump
2624
run: |
27-
npm version patch
28-
- name: Push to master
29-
run: |
30-
git push github HEAD:"${GITHUB_REF}"
25+
./node_modules/.bin/vsce publish --pre

Diff for: .github/workflows/publish-marketplace.yml

-25
This file was deleted.

Diff for: .github/workflows/release-or-pr.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Release
2+
3+
on:
4+
workflow_run:
5+
workflows: ["automatic-release"]
6+
branches: [master]
7+
types:
8+
- completed
9+
10+
jobs:
11+
release:
12+
name: Release
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout Repo
16+
uses: actions/checkout@v2
17+
with:
18+
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
19+
fetch-depth: 0
20+
21+
- name: Setup Node.js 12.x
22+
uses: actions/setup-node@v2
23+
with:
24+
node-version: 16.x
25+
26+
- name: Install Dependencies
27+
run: npm ci
28+
29+
- name: Create Release Pull Request or Publish to npm
30+
id: changesets
31+
uses: changesets/action@v1
32+
with:
33+
publish: npm run publish
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
OPEN_VSX_ACCESS_TOKEN: ${{ secrets.OPEN_VSX_ACCESS_TOKEN }}
37+
VSCE_PAT: ${{ secrets.VSCE_PAT }}

0 commit comments

Comments
 (0)