Skip to content

Commit 61be3d2

Browse files
authored
chore: update vscode build script (#7)
2 parents a3147cc + d4b64e9 commit 61be3d2

File tree

29 files changed

+15119
-9885
lines changed

29 files changed

+15119
-9885
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/[email protected]/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "restricted",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.editorconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
7+
[*.{js,json,yml}]
8+
charset = utf-8
9+
indent_style = space
10+
indent_size = 2

.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/.yarn/** linguist-vendored
2+
/.yarn/releases/* binary
3+
/.yarn/plugins/**/* binary
4+
/.pnp.* binary linguist-generated
Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
1-
name: 'Install'
2-
description: 'Sets up Node.js and runs install'
1+
name: "Install"
2+
description: "Sets up Node.js and runs install"
33

44
runs:
55
using: composite
66
steps:
7-
- uses: pnpm/[email protected]
8-
with:
9-
version: 7
10-
117
- name: Setup Node.js
128
uses: actions/setup-node@v3
139
with:
14-
node-version: 16.x
15-
registry-url: 'https://registry.npmjs.org'
16-
cache: 'pnpm'
10+
node-version: 20.x
11+
registry-url: "https://registry.npmjs.org"
12+
cache: "yarn"
1713

1814
- name: Setup Git User
1915
shell: bash
@@ -23,4 +19,4 @@ runs:
2319
2420
- name: Install dependencies
2521
shell: bash
26-
run: pnpm install
22+
run: yarn install --frozen-lockfile

.github/workflows/quality.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
uses: ./.github/composite-actions/install
2525

2626
- name: Run Prettier
27-
run: pnpm fmt
27+
run: yarn fmt
2828

2929
# tests:
3030
# name: Unit Tests
@@ -37,7 +37,7 @@ jobs:
3737
# uses: ./.github/composite-actions/install
3838

3939
# - name: Run tests
40-
# run: pnpm test
40+
# run: yarn test
4141

4242
eslint:
4343
name: ESLint
@@ -50,7 +50,7 @@ jobs:
5050
uses: ./.github/composite-actions/install
5151

5252
- name: Run ESLint
53-
run: pnpm lint
53+
run: yarn lint
5454
env:
5555
NODE_OPTIONS: "--max-old-space-size=4096"
5656

@@ -65,4 +65,4 @@ jobs:
6565
uses: ./.github/composite-actions/install
6666

6767
- name: Run TypeScript type check
68-
run: pnpm typecheck
68+
run: yarn typecheck

.github/workflows/release.yml

Lines changed: 17 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ on:
55
paths:
66
- ".changeset/**"
77
- "packages/**"
8-
- "extension/**"
8+
- ".github/workflows/release.yml"
99
branches:
1010
- main
11+
- ci/release
1112

1213
jobs:
1314
release:
@@ -23,13 +24,13 @@ jobs:
2324
uses: ./.github/composite-actions/install
2425

2526
- name: Build packages
26-
run: pnpm build
27+
run: yarn build
2728

2829
- name: Publish packages
2930
id: changesets
3031
uses: changesets/action@v1
3132
with:
32-
publish: pnpm release
33+
publish: yarn release
3334
env:
3435
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
3536
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
@@ -38,8 +39,8 @@ jobs:
3839
if: steps.changesets.outputs.published != 'true'
3940
run: |
4041
git checkout main
41-
pnpm changeset version --snapshot dev
42-
pnpm changeset publish --tag dev
42+
yarn changeset version --snapshot dev
43+
yarn changeset publish --tag dev
4344
env:
4445
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
4546
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
@@ -101,35 +102,27 @@ jobs:
101102
uses: ./.github/composite-actions/install
102103

103104
- name: Build packages
104-
run: pnpm build
105+
run: yarn build
105106

106107
- name: Set Environment Variable
107108
run: echo "VSCE_RELEASE_VERSION=$(date +'%s' | cut -c1-8)" >> $GITHUB_ENV
108109

109-
- name: Prepare npm install
110-
working-directory: ./extension/vscode
111-
run: pnpm rewrite-deps && pnpm clean
112-
113-
- name: Overrides esbuild
114-
working-directory: ./extension/vscode
115-
if: contains(matrix.target, 'darwin-arm64')
116-
run: pnpm override-esbuild
117-
118-
- name: Install with npm
119-
working-directory: ./extension/vscode
110+
- name: Publish RC
111+
if: steps.changesets.outputs.published != 'true'
112+
working-directory: ./packages/vscode
120113
run: |
121-
npm i --ignore-scripts
114+
yarn release
122115
env:
123-
npm_config_arch: ${{ matrix.npm_config_arch }}
116+
VSCE_TOKEN: ${{secrets.VSCE_TOKEN}}
117+
VSCE_RELEASE_VERSION: ${{ needs.create_timestamp.outputs.timestamp }}
118+
VSCE_RELEASE_TYPE: rc
119+
VSCE_TARGET: ${{ matrix.target }}
124120

125121
- name: Publish extension
126122
if: steps.changesets.outputs.published == 'true'
127-
working-directory: ./extension/vscode
123+
working-directory: ./packages/vscode
128124
run: |
129-
pnpm rewrite-deps
130-
pnpm clean
131-
npm i
132-
pnpm release
125+
yarn release
133126
env:
134127
VSCE_TOKEN: ${{secrets.VSCE_TOKEN}}
135128
VSCE_RELEASE_VERSION: ${{ needs.create_timestamp.outputs.timestamp }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,5 @@ ts-import-map-outdir
2929

3030
!packages/studio/styled-system
3131
packages/studio/src/lib/analysis.json
32+
33+
.yarn/install-state.gz

.npmrc

Lines changed: 0 additions & 7 deletions
This file was deleted.

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"skipFiles": ["<node_internals>/**"]
3535
},
3636
{
37-
"command": "pnpm test ${relativeFile}",
37+
"command": "yarn test ${relativeFile}",
3838
"name": "Run Vitest",
3939
"request": "launch",
4040
"type": "node-terminal"

0 commit comments

Comments
 (0)