Skip to content

Commit

Permalink
chore: ovsx release fix (#1063)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnstonCode committed Aug 30, 2020
1 parent 7ff4c7b commit 7ba0782
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 27 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/main.yml
Expand Up @@ -68,28 +68,6 @@ jobs:
GIT_AUTHOR_NAME: ${{ secrets.gitName }}
GIT_COMMITTER_NAME: ${{ secrets.gitName }}

- name: Release Open VSX
if: startsWith(matrix.os, 'ubuntu') && matrix.version == 'stable' && github.ref == 'refs/heads/master' && github.repository == 'JohnstonCode/svn-scm'
run: |
yarn add iconv-lite jschardet
npx vsce package -o svn-scm-ovsx.vsix
npx ovsx publish svn-scm-ovsx.vsix -p ${{ secrets.ovsxToken }}
- name: 'Get tag'
if: startsWith(matrix.os, 'ubuntu') && matrix.version == 'stable' && github.ref == 'refs/heads/master' && github.repository == 'JohnstonCode/svn-scm'
id: getTag
uses: "WyriHaximus/github-action-get-previous-tag@master"
env:
GITHUB_TOKEN: "${{ secrets.githubToken }}"

- name: Upload Open VSX to release
if: startsWith(matrix.os, 'ubuntu') && matrix.version == 'stable' && github.ref == 'refs/heads/master' && github.repository == 'JohnstonCode/svn-scm'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.githubToken }}
file: svn-scm-ovsx.vsix
tag: ${{ steps.getTag.outputs.tag }}

eslint:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip ci')"
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/releaseOpenVsx.yml
@@ -0,0 +1,40 @@
name: release Open VSX

on:
push:
tags:
- "v*"

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Fetch tags
run: git fetch --tags -f || true

- name: Install dependencies
run: yarn install --frozen-lockfile || yarn install --frozen-lockfile

- name: Release Open VSX
run: |
yarn add iconv-lite jschardet
npx vsce package -o svn-scm-ovsx.vsix
npx ovsx publish svn-scm-ovsx.vsix -p ${{ secrets.ovsxToken }}
- name: 'Get tag'
id: getTag
uses: "WyriHaximus/github-action-get-previous-tag@master"
env:
GITHUB_TOKEN: "${{ secrets.githubToken }}"

- name: Upload Open VSX to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.githubToken }}
file: svn-scm-ovsx.vsix
tag: ${{ steps.getTag.outputs.tag }}
10 changes: 5 additions & 5 deletions yarn.lock
Expand Up @@ -5417,11 +5417,11 @@ osenv@0, osenv@^0.1.3, osenv@^0.1.4, osenv@^0.1.5:
os-tmpdir "^1.0.0"

ovsx@^0.1.0-next.9321255:
version "0.1.0-next.9321255"
resolved "https://registry.yarnpkg.com/ovsx/-/ovsx-0.1.0-next.9321255.tgz#dbb679e2eacf28017cfd474487a94008426d024d"
integrity sha512-gGQRzQWHBT6VdjZZgGxQUN1oaRxBuKcTkhtkL9AMstLqIu+tVmbTjJIE/j/RQeSumsn+HPoXysjnR0fzKsHkdQ==
version "0.1.0-next.bcce4bc"
resolved "https://registry.yarnpkg.com/ovsx/-/ovsx-0.1.0-next.bcce4bc.tgz#8da209efa2e634151a6437a4fdce23e8e947cca4"
integrity sha512-ArfM+MLP/JwxqKctM5UNyqyCgSMMvUPI7ADu5sVS7nSG2+uxGW+y9AyO5dh8g61MdjhsTSgZsJ4nl8f29cf/bQ==
dependencies:
vsce "^1.73.0"
vsce "~1.77.0"

p-each-series@^2.1.0:
version "2.1.0"
Expand Down Expand Up @@ -7669,7 +7669,7 @@ vm-browserify@^1.0.1:
resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-1.1.2.tgz#78641c488b8e6ca91a75f511e7a3b32a86e5dda0"
integrity sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==

vsce@^1.73.0:
vsce@^1.73.0, vsce@~1.77.0:
version "1.77.0"
resolved "https://registry.yarnpkg.com/vsce/-/vsce-1.77.0.tgz#21364d3e63095b2f54e0f185445e8ff6ab614602"
integrity sha512-8vOTCI3jGmOm0JJFu/BMAbqxpaSuka4S3hV9E6K5aWBUsDM1SGFExkIxHblnsI8sls43xP61DHorYT+K0F+GFA==
Expand Down

0 comments on commit 7ba0782

Please sign in to comment.