Skip to content

Commit c6d1006

Browse files
committed
chore: bump dependencies
1 parent 5547829 commit c6d1006

10 files changed

Lines changed: 794 additions & 474 deletions

File tree

.github/workflows/workflow.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Build Plugin JAR File
33
on:
44
push:
55
branches: [ main ]
6+
release:
7+
types:
8+
- created
69

710
jobs:
811
build:
@@ -43,6 +46,10 @@ jobs:
4346
./gradlew pnpmInstall
4447
- name: Build with Gradle
4548
run: |
49+
# Set the version with tag name when releasing
50+
version=${{ github.event.release.tag_name }}
51+
version=${version#v}
52+
sed -i "s/version=.*-SNAPSHOT$/version=$version/1" gradle.properties
4653
./gradlew clean build -x test
4754
- name: Archive plugin-starter jar
4855
uses: actions/upload-artifact@v2
@@ -51,3 +58,48 @@ jobs:
5158
path: |
5259
build/libs/*-plain.jar
5360
retention-days: 1
61+
62+
github-release:
63+
runs-on: ubuntu-latest
64+
needs: build
65+
if: github.event_name == 'release'
66+
steps:
67+
- name: Download plugin-starter jar
68+
uses: actions/download-artifact@v2
69+
with:
70+
name: plugin-starter
71+
path: build/libs
72+
- name: Get Name of Artifact
73+
id: get_artifact
74+
run: |
75+
ARTIFACT_PATHNAME=$(ls build/libs/*.jar | head -n 1)
76+
ARTIFACT_NAME=$(basename ${ARTIFACT_PATHNAME})
77+
echo "Artifact pathname: ${ARTIFACT_PATHNAME}"
78+
echo "Artifact name: ${ARTIFACT_NAME}"
79+
echo "ARTIFACT_PATHNAME=${ARTIFACT_PATHNAME}" >> $GITHUB_ENV
80+
echo "ARTIFACT_NAME=${ARTIFACT_NAME}" >> $GITHUB_ENV
81+
echo "RELEASE_ID=${{ github.event.release.id }}" >> $GITHUB_ENV
82+
- name: Upload a Release Asset
83+
uses: actions/github-script@v2
84+
if: github.event_name == 'release'
85+
with:
86+
github-token: ${{secrets.GITHUB_TOKEN}}
87+
script: |
88+
console.log('environment', process.versions);
89+
90+
const fs = require('fs').promises;
91+
92+
const { repo: { owner, repo }, sha } = context;
93+
console.log({ owner, repo, sha });
94+
95+
const releaseId = process.env.RELEASE_ID
96+
const artifactPathName = process.env.ARTIFACT_PATHNAME
97+
const artifactName = process.env.ARTIFACT_NAME
98+
console.log('Releasing', releaseId, artifactPathName, artifactName)
99+
100+
await github.repos.uploadReleaseAsset({
101+
owner, repo,
102+
release_id: releaseId,
103+
name: artifactName,
104+
data: await fs.readFile(artifactPathName)
105+
});

build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ plugins {
77
}
88

99
group 'run.halo.starter'
10-
version '0.0.1-SNAPSHOT'
1110
sourceCompatibility = JavaVersion.VERSION_17
1211

1312
repositories {

console/package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,28 @@
1111
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
1212
},
1313
"dependencies": {
14-
"@halo-dev/console-shared": "^0.0.0-alpha.5",
15-
"@halo-dev/components": "^0.0.0-alpha.4",
16-
"vue": "^3.2.37"
14+
"@halo-dev/components": "^0.0.0-alpha.5",
15+
"@halo-dev/console-shared": "^2.0.0-alpha.3",
16+
"vue": "^3.2.41"
1717
},
1818
"devDependencies": {
19-
"@rushstack/eslint-patch": "^1.1.4",
20-
"@types/jsdom": "^16.2.14",
21-
"@types/node": "^16.11.44",
22-
"@vitejs/plugin-vue": "^2.3.3",
23-
"@vitejs/plugin-vue-jsx": "^1.3.10",
19+
"@rushstack/eslint-patch": "^1.2.0",
20+
"@types/jsdom": "^20.0.0",
21+
"@types/node": "^16.18.0",
22+
"@vitejs/plugin-vue": "^3.1.2",
23+
"@vitejs/plugin-vue-jsx": "^2.0.1",
2424
"@vue/eslint-config-prettier": "^7.0.0",
25-
"@vue/eslint-config-typescript": "^10.0.0",
26-
"@vue/test-utils": "^2.0.2",
25+
"@vue/eslint-config-typescript": "^11.0.2",
26+
"@vue/test-utils": "^2.2.0",
2727
"@vue/tsconfig": "^0.1.3",
28-
"eslint": "^8.19.0",
29-
"eslint-plugin-vue": "^8.7.1",
28+
"eslint": "^8.26.0",
29+
"eslint-plugin-vue": "^9.6.0",
3030
"jsdom": "^19.0.0",
3131
"npm-run-all": "^4.1.5",
3232
"prettier": "^2.7.1",
3333
"typescript": "~4.7.4",
34-
"vite": "^2.9.14",
35-
"vitest": "^0.13.1",
36-
"vue-tsc": "^0.35.2"
34+
"vite": "^3.1.8",
35+
"vitest": "^0.24.3",
36+
"vue-tsc": "^1.0.9"
3737
}
3838
}

0 commit comments

Comments
 (0)