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

Commit

Permalink
add changesets
Browse files Browse the repository at this point in the history
  • Loading branch information
acao committed Dec 9, 2021
1 parent 6500c2b commit 6d69112
Show file tree
Hide file tree
Showing 7 changed files with 3,422 additions and 154 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
10 changes: 10 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://unpkg.com/@changesets/config@1.5.0/schema.json",
"changelog": [
"@changesets/changelog-github",
{ "repo": "graphql/vscode-graphql" }
],
"commit": false,
"access": "public",
"baseBranch": "master"
}
17 changes: 6 additions & 11 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,19 @@ on:

env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
VSCE_PAT: ${{ secrets.VSCE_PAT }}

jobs:
release:
name: Create release
prerelease:
if: endsWith(github.ref, '/master')
name: Create prerelease
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Dependencies
run: npm ci
- name: Setup GIT
run: |
git config --global user.email "prismabots@gmail.com"
git config --global user.name "Prismo"
git remote add github "https://$GITHUB_ACTOR:$GH_TOKEN@github.com/$GITHUB_REPOSITORY.git" || true

- name: Bump version
id: bump
run: |
npm version patch
- name: Push to master
run: |
git push github HEAD:"${GITHUB_REF}"
./node_modules/.bin/vsce publish --pre
25 changes: 0 additions & 25 deletions .github/workflows/publish-marketplace.yml

This file was deleted.

37 changes: 37 additions & 0 deletions .github/workflows/release-or-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Release

on:
workflow_run:
workflows: ["automatic-release"]
branches: [master]
types:
- completed

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0

- name: Setup Node.js 12.x
uses: actions/setup-node@v2
with:
node-version: 16.x

- name: Install Dependencies
run: npm ci

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: npm run publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPEN_VSX_ACCESS_TOKEN: ${{ secrets.OPEN_VSX_ACCESS_TOKEN }}
VSCE_PAT: ${{ secrets.VSCE_PAT }}
Loading

0 comments on commit 6d69112

Please sign in to comment.