Skip to content

Commit

Permalink
🧱 Set up Azure releaser
Browse files Browse the repository at this point in the history
  • Loading branch information
tiulpin committed Apr 12, 2022
1 parent 2da3372 commit dd1f91c
Show file tree
Hide file tree
Showing 8 changed files with 59 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Set Node.js 12.x
uses: actions/setup-node@v2.5.1
uses: actions/setup-node@v3.1.0
with:
node-version: 12.x
- name: Install dependencies
Expand All @@ -28,7 +28,7 @@ jobs:
fi
id: diff
# If index.js was different from expected, upload the expected version as an artifact
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
with:
name: dist
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/vsts-dev-releaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: 'vsts-dev-releaser'
on:
workflow_dispatch:

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set Node.js 12.x
uses: actions/setup-node@v3.1.0
with:
node-version: 12.x
- name: Install dependencies
run: cd vsts && npm install && npm i -g tfx-cli
- name: Package and publish
run: |
cd vsts && npm run azure-dev
mv JetBrains.qodana-dev-*.vsix qodana-dev.vsix
tfx extension publish --publisher JetBrains --vsix qodana-dev.vsix --share-with qodana-demo -t $AZURE_TOKEN
env:
AZURE_TOKEN: ${{ secrets.AZURE_TOKEN }}
24 changes: 24 additions & 0 deletions .github/workflows/vsts-releaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: 'vsts-releaser'
on:
push:
tags:
- '*'

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set Node.js 12.x
uses: actions/setup-node@v3.1.0
with:
node-version: 12.x
- name: Install dependencies
run: cd vsts && npm install && npm i -g tfx-cli
- name: Package and publish
run: |
cd vsts && npm run azure
mv JetBrains.qodana-*.vsix qodana.vsix
tfx extension publish --publisher JetBrains --vsix qodana.vsix -t $AZURE_TOKEN
env:
AZURE_TOKEN: ${{ secrets.AZURE_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/vsts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Set Node.js 12.x
uses: actions/setup-node@v2.5.1
uses: actions/setup-node@v3.1.0
with:
node-version: 12.x
- name: Install dependencies
Expand Down
10 changes: 7 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,15 @@ Run all required commands to check everything locally for the release:
npm run all
```

Update the version – edit the following artifacts:

- [ ] [vsts/vss-extension.json](vsts/vss-extension.json)
- [ ] [vsts/QodanaScan/task.json](vsts/QodanaScan/task.json)

Test extension packing:

```sh
npm run azure
npm run azure-dev
```

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

## Submit a pull request

Push your branch to your `qodana` fork and open a pull request against the
Push your branch to your `qodana-action` fork and open a pull request against the
main branch.


## Release a new version

If you are a core maintainer and want to release a new version, all you need is just running the following command:
Expand Down
2 changes: 1 addition & 1 deletion vsts/QodanaScan/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"version": {
"Major": 1,
"Minor": 0,
"Patch": 2
"Patch": 3
},
"demands": ["RemoteDockerServerOS -equals linux"],
"instanceNameFormat": "Qodana Scan",
Expand Down
2 changes: 1 addition & 1 deletion vsts/vss-extension.dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifestVersion": 1,
"id": "qodana-dev",
"name": "Qodana (Dev)",
"version": "1.0.3",
"version": "1.0.4",
"publisher": "JetBrains",
"targets": [
{
Expand Down
2 changes: 1 addition & 1 deletion vsts/vss-extension.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifestVersion": 1,
"id": "qodana",
"name": "Qodana",
"version": "1.0.2",
"version": "1.0.3",
"public": true,
"publisher": "JetBrains",
"targets": [
Expand Down

0 comments on commit dd1f91c

Please sign in to comment.