Skip to content

Commit

Permalink
Upgrade github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
davelopez committed Oct 29, 2022
1 parent e22cd2f commit cf55d82
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
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

0 comments on commit cf55d82

Please sign in to comment.