Skip to content

Commit fc160f7

Browse files
committed
ci: Add changeset
1 parent 3023108 commit fc160f7

File tree

6 files changed

+8900
-5515
lines changed

6 files changed

+8900
-5515
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
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)

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@2.1.1/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [["vscode-css-variables", "css-variables-language-server"]],
7+
"access": "public",
8+
"baseBranch": "master",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.github/workflows/ci.yml

Lines changed: 3 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -8,47 +8,18 @@ jobs:
88
name: Test
99
strategy:
1010
matrix:
11-
os: [macos-latest, ubuntu-latest, windows-latest]
11+
os: [ubuntu-latest, windows-latest]
1212
runs-on: ${{ matrix.os }}
1313
steps:
1414
- name: Checkout
1515
uses: actions/checkout@v2
16-
with:
17-
path: cssvar
1816
- name: Setup Node.js
19-
uses: actions/setup-node@v1
17+
uses: actions/setup-node@v2
2018
with:
2119
node-version: 16.16.0
2220
- name: Install dependencies
2321
run: npm install
2422
- name: Run headless test
2523
uses: GabrielBB/xvfb-action@v1.0
2624
with:
27-
run: npm test
28-
29-
publish:
30-
name: Release and publish
31-
needs: test
32-
runs-on: ubuntu-18.04
33-
steps:
34-
- name: Checkout
35-
uses: actions/checkout@v2
36-
with:
37-
path: cssvar
38-
- name: Setup Node.js
39-
uses: actions/setup-node@v1
40-
with:
41-
node-version: 16.16.0
42-
- name: Install dependencies
43-
run: npm install
44-
- name: Release
45-
env:
46-
GITHUB_TOKEN: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
47-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
48-
run: npx semantic-release
49-
- name: Vscode release plugin
50-
uses: JCofman/vscodeaction@master
51-
env:
52-
PUBLISHER_TOKEN: ${{ secrets.PUBLISHER_TOKEN }}
53-
with:
54-
args: publish -p $PUBLISHER_TOKEN
25+
run: npm test

.github/workflows/release.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Changelog
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
release:
10+
name: Changelog
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Check out branch
14+
uses: actions/checkout@v2
15+
with:
16+
fetch-depth: 0 # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
17+
18+
- name: Set up Node.js 16.16.0
19+
uses: actions/setup-node@v2
20+
with:
21+
node-version: 16.16.0
22+
23+
- name: Install dependencies
24+
run: npm install
25+
env:
26+
CI: true
27+
28+
- name: Create Release Pull Request or Publish to npm
29+
id: changesets
30+
uses: changesets/action@v1
31+
# with:
32+
# publish: yarn release
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
36+
37+
# - name: Publish to VSCode Marketplace
38+
# if: steps.changesets.outputs.published == 'true'
39+
# working-directory: ./packages/vscode-css-variables
40+
# run: |
41+
# npm i
42+
# npx vsce publish -p ${{ secrets.VSCE_TOKEN }}
43+
# - name: Publish to OpenVSX
44+
# if: steps.changesets.outputs.published == 'true'
45+
# working-directory: ./packages/vscode-css-variables
46+
# run: |
47+
# npm i
48+
# npx ovsx publish -p ${{ secrets.OVSX_TOKEN }}

0 commit comments

Comments
 (0)