Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade GitHub actions #215

Merged
merged 1 commit into from
Oct 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/client-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python for local environment
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: 3.8
- name: Install Node.js
uses: actions/setup-node@v3
with:
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Get version from tag
id: get_version
Expand Down Expand Up @@ -56,10 +56,10 @@ jobs:
working-directory: server
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Python 3.8
uses: actions/setup-python@v2
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.8

Expand All @@ -85,41 +85,41 @@ jobs:
working-directory: client
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 12
node-version: 16

- name: Clean install dependencies
run: |
npm ci

- name: Update version in package.json
uses: onlyutkarsh/[email protected].1
uses: onlyutkarsh/[email protected].5
with:
files: "${{github.workspace}}/client/package.json"
patch-syntax: |
= /version => "${{needs.prepare_release.outputs.release_version}}"

- name: Publish to Open VSX Registry
uses: HaaLeo/publish-vscode-extension@v0
uses: HaaLeo/publish-vscode-extension@v1
id: publishToOpenVSX
with:
pat: ${{ secrets.OPEN_VSX_TOKEN }}
packagePath: "./client/"

- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v0
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com
extensionFile: ${{ steps.publishToOpenVSX.outputs.vsixPath }}
packagePath: ""

- name: Upload vsix as artifact
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v3
with:
name: galaxy-tools-${{needs.prepare_release.outputs.release_version}}.vsix
path: ${{ steps.publishToOpenVSX.outputs.vsixPath }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/server-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ jobs:
working-directory: server

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: "3.8"
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down