Skip to content

Commit dd1f91c

Browse files
committed
🧱 Set up Azure releaser
1 parent 2da3372 commit dd1f91c

File tree

8 files changed

+59
-9
lines changed

8 files changed

+59
-9
lines changed

.github/workflows/actions.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v3
1414
- name: Set Node.js 12.x
15-
uses: actions/setup-node@v2.5.1
15+
uses: actions/setup-node@v3.1.0
1616
with:
1717
node-version: 12.x
1818
- name: Install dependencies
@@ -28,7 +28,7 @@ jobs:
2828
fi
2929
id: diff
3030
# If index.js was different from expected, upload the expected version as an artifact
31-
- uses: actions/upload-artifact@v2
31+
- uses: actions/upload-artifact@v3
3232
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
3333
with:
3434
name: dist
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: 'vsts-dev-releaser'
2+
on:
3+
workflow_dispatch:
4+
5+
jobs:
6+
release:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- name: Set Node.js 12.x
11+
uses: actions/[email protected]
12+
with:
13+
node-version: 12.x
14+
- name: Install dependencies
15+
run: cd vsts && npm install && npm i -g tfx-cli
16+
- name: Package and publish
17+
run: |
18+
cd vsts && npm run azure-dev
19+
mv JetBrains.qodana-dev-*.vsix qodana-dev.vsix
20+
tfx extension publish --publisher JetBrains --vsix qodana-dev.vsix --share-with qodana-demo -t $AZURE_TOKEN
21+
env:
22+
AZURE_TOKEN: ${{ secrets.AZURE_TOKEN }}

.github/workflows/vsts-releaser.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: 'vsts-releaser'
2+
on:
3+
push:
4+
tags:
5+
- '*'
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- name: Set Node.js 12.x
13+
uses: actions/[email protected]
14+
with:
15+
node-version: 12.x
16+
- name: Install dependencies
17+
run: cd vsts && npm install && npm i -g tfx-cli
18+
- name: Package and publish
19+
run: |
20+
cd vsts && npm run azure
21+
mv JetBrains.qodana-*.vsix qodana.vsix
22+
tfx extension publish --publisher JetBrains --vsix qodana.vsix -t $AZURE_TOKEN
23+
env:
24+
AZURE_TOKEN: ${{ secrets.AZURE_TOKEN }}

.github/workflows/vsts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
steps:
2323
- uses: actions/checkout@v3
2424
- name: Set Node.js 12.x
25-
uses: actions/setup-node@v2.5.1
25+
uses: actions/setup-node@v3.1.0
2626
with:
2727
node-version: 12.x
2828
- name: Install dependencies

CONTRIBUTING.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,15 @@ Run all required commands to check everything locally for the release:
7272
npm run all
7373
```
7474

75+
Update the version – edit the following artifacts:
76+
77+
- [ ] [vsts/vss-extension.json](vsts/vss-extension.json)
78+
- [ ] [vsts/QodanaScan/task.json](vsts/QodanaScan/task.json)
79+
7580
Test extension packing:
7681

7782
```sh
78-
npm run azure
83+
npm run azure-dev
7984
```
8085

8186
## Create a commit
@@ -88,10 +93,9 @@ You can follow the documentation on
8893

8994
## Submit a pull request
9095

91-
Push your branch to your `qodana` fork and open a pull request against the
96+
Push your branch to your `qodana-action` fork and open a pull request against the
9297
main branch.
9398

94-
9599
## Release a new version
96100

97101
If you are a core maintainer and want to release a new version, all you need is just running the following command:

vsts/QodanaScan/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"version": {
1111
"Major": 1,
1212
"Minor": 0,
13-
"Patch": 2
13+
"Patch": 3
1414
},
1515
"demands": ["RemoteDockerServerOS -equals linux"],
1616
"instanceNameFormat": "Qodana Scan",

vsts/vss-extension.dev.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifestVersion": 1,
33
"id": "qodana-dev",
44
"name": "Qodana (Dev)",
5-
"version": "1.0.3",
5+
"version": "1.0.4",
66
"publisher": "JetBrains",
77
"targets": [
88
{

vsts/vss-extension.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifestVersion": 1,
33
"id": "qodana",
44
"name": "Qodana",
5-
"version": "1.0.2",
5+
"version": "1.0.3",
66
"public": true,
77
"publisher": "JetBrains",
88
"targets": [

0 commit comments

Comments
 (0)