@vscode/codicons 0.0.45-2 → 0.0.45-3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/.github/workflows/build.yml +0 -67
package/package.json
CHANGED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
name: Codicons Build
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [ main ]
|
|
6
|
-
tags:
|
|
7
|
-
- '*' # Only runs on annotated tags
|
|
8
|
-
pull_request:
|
|
9
|
-
branches: [ main ]
|
|
10
|
-
workflow_dispatch:
|
|
11
|
-
|
|
12
|
-
jobs:
|
|
13
|
-
build:
|
|
14
|
-
runs-on: ubuntu-latest
|
|
15
|
-
|
|
16
|
-
steps:
|
|
17
|
-
- uses: actions/checkout@v4
|
|
18
|
-
- uses: actions/setup-node@v4
|
|
19
|
-
with:
|
|
20
|
-
node-version: '16'
|
|
21
|
-
|
|
22
|
-
- name: Install dependencies
|
|
23
|
-
run: npm install
|
|
24
|
-
|
|
25
|
-
- name: Build font
|
|
26
|
-
run: npm run build
|
|
27
|
-
|
|
28
|
-
- name: Upload codicon.ttf as artifact
|
|
29
|
-
uses: actions/upload-artifact@v4
|
|
30
|
-
with:
|
|
31
|
-
name: codicon-font-${{ github.sha }}.ttf
|
|
32
|
-
path: dist/codicon.ttf
|
|
33
|
-
|
|
34
|
-
- name: PR to microsoft/vscode
|
|
35
|
-
env:
|
|
36
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
37
|
-
run: |
|
|
38
|
-
BRANCH="update-codicons"
|
|
39
|
-
MESSAGE="chore: Update codicons to ${{ github.sha }}"
|
|
40
|
-
|
|
41
|
-
git clone --depth=1 https://github.com/microsoft/vscode.git
|
|
42
|
-
cd vscode
|
|
43
|
-
git checkout -b $BRANCH
|
|
44
|
-
|
|
45
|
-
cp -f ../dist/codicon.ttf src/vs/base/browser/ui/codicons/codicon/
|
|
46
|
-
cp -f ../dist/codiconsLibrary.ts src/vs/base/common/
|
|
47
|
-
git add .
|
|
48
|
-
|
|
49
|
-
git config user.name "${{ github.actor }}"
|
|
50
|
-
git config user.email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com"
|
|
51
|
-
|
|
52
|
-
if git diff-index --quiet HEAD --; then
|
|
53
|
-
echo "No changes to commit"
|
|
54
|
-
exit 0
|
|
55
|
-
fi
|
|
56
|
-
|
|
57
|
-
git commit -m "$MESSAGE"
|
|
58
|
-
git push -f https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/microsoft/vscode.git $BRANCH
|
|
59
|
-
|
|
60
|
-
echo "${{ secrets.GITHUB_TOKEN }}" > token.txt
|
|
61
|
-
gh auth login --with-token < token.txt
|
|
62
|
-
|
|
63
|
-
gh pr create \
|
|
64
|
-
--title "[Codicon bump] $MESSAGE" \
|
|
65
|
-
--body "This PR was created automatically from [vscode-codicons](https://github.com/microsoft/vscode-codicons)" \
|
|
66
|
-
--base "main" \
|
|
67
|
-
--head "$BRANCH"
|