Skip to content

Commit 73edcb5

Browse files
committed
fixing workflow and icon issue in package
1 parent 633e309 commit 73edcb5

File tree

12 files changed

+4476
-5
lines changed

12 files changed

+4476
-5
lines changed

.github/pull_request_template.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<!--
2+
Before submitting a Merge Request, please ensure you've done the following:
3+
- 👷‍♀️ Create small MRs. In most cases, this will be possible.
4+
- 📝 Use descriptive commit messages.
5+
-->
6+
7+
## What type of MR is this? (check all applicable)
8+
9+
- [ ] 🍕 Feature
10+
- [x] 🐛 Bug Fix
11+
- [ ] 📝 Doc Update
12+
- [ ] 🎨 Style
13+
- [ ] 🧑‍💻 Code Refactor
14+
- [ ] 🔥 Performance Improvements
15+
- [ ] ✅ Test
16+
- [ ] 🤖 Build
17+
- [ ] 🔁 CI
18+
- [ ] ⏩ Revert
19+
20+
## Description
21+
22+
<!--
23+
Please do not leave this blank
24+
This MR [adds/removes/fixes/replaces] the [feature/bug/etc].
25+
-->
26+
27+
## Important files to start review from
28+
29+
## Mobile & Desktop Screenshots/Recordings
30+
31+
## Added tests?
32+
33+
- [ ] 👍 yes
34+
- [x] 🙅 no, because they aren't needed
35+
- [ ] 🙋 no, because I need help
36+
37+
## Added to documentation?
38+
39+
- [x] 📜 README.md
40+
- [ ] 🙅 no documentation needed
41+
42+
## Prettify the repositary
43+
44+
`npm run format`
45+
46+
- [ ] 👍
47+
- [x] 🙅 no
48+
49+
## [optional] Are there any post-deployment tasks we need to perform?
50+
51+
## [optional] What gif best describes this MR or how it makes you feel?
52+
53+
![alt text](URL of the GIF file)
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Internal Release
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
tags:
7+
- 'v*-internal'
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: '18'
20+
21+
- name: Install root dependencies
22+
run: npm ci
23+
24+
- name: Install webview dependencies
25+
working-directory: ./webview
26+
run: npm ci
27+
28+
- name: Build webview
29+
run: npm run build:webview
30+
31+
- name: Install vsce
32+
run: npm install -g @vscode/vsce
33+
34+
- name: Package Extension
35+
run: vsce package
36+
37+
- name: Upload VSIX as artifact
38+
uses: actions/upload-artifact@v3
39+
with:
40+
name: extension
41+
path: "*.vsix"
42+
43+
- name: Create Internal Release
44+
uses: softprops/action-gh-release@v1
45+
with:
46+
files: "*.vsix"
47+
prerelease: true
48+
name: Internal Release ${{ github.ref_name }}
49+
tag_name: ${{ github.ref }}
50+
env:
51+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Publish VS Code Extension
2+
3+
on:
4+
push:
5+
tags:
6+
- "v[0-9]+.[0-9]+.[0-9]+"
7+
8+
jobs:
9+
build-and-publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Check out code
13+
uses: actions/checkout@v2
14+
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v2
17+
with:
18+
node-version: "14"
19+
20+
- name: Install Dependencies with Yarn
21+
run: yarn install
22+
23+
- name: Update Version in package.json
24+
run: |
25+
VERSION=${GITHUB_REF#refs/tags/}
26+
npm version $VERSION --no-git-tag-version
27+
28+
- name: Package Extension
29+
run: npx vsce package
30+
31+
- name: Publish Extension
32+
run: npx vsce publish
33+
env:
34+
VSCE_PAT: ${{ secrets.VSC_PERSONAL_ACCESS_TOKEN }}

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
out
2-
dist
32
node_modules
43
.vscode-test/
54
*.vsix

.vscodeignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ webview/README.md
2121
webview/package.json
2222
webview/package-lock.json
2323
webview/node_modules/**
24-
webview/codicons/**
2524

2625
# Ignore Misc
2726
.yarnrc

src/panels/RequestPanel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export class Lama2Panel {
196196
// The JS file from the React build output
197197
const scriptUri = getUri(webview, this._extensionUri, ["webview", "build", "assets", "index.js"]);
198198

199-
const codiconsUri = webview.asWebviewUri(vscode.Uri.joinPath(this._extensionUri, 'webview', 'codicons', 'dist', 'codicon.css'));
199+
const codiconsUri = webview.asWebviewUri(vscode.Uri.joinPath(this._extensionUri, 'webview', 'codicons','dist', 'codicon.css'));
200200

201201
const nonce = getNonce();
202202

webview/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
node_modules
22
.DS_Store
3-
dist
43
dist-ssr
54
build
65
build-ssr

0 commit comments

Comments
 (0)