Skip to content

Commit

Permalink
Merge pull request #4 from neandertech/setup-marketplace-release
Browse files Browse the repository at this point in the history
Setup marketplace release
  • Loading branch information
Baccata authored Sep 27, 2022
2 parents 8f8fd16 + 5778e89 commit e34487e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 19 deletions.
37 changes: 20 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,30 @@ on:

jobs:
build:
name: CI
name: CI
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Yarn install and build
run: yarn install && yarn compile

- name: Package
deploy:
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v'))
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Install vsce and deps
run: |
npm install -g vsce
mkdir -p bin/
npm i
vsce package --allow-star-activation -o bin/langoustine-vscode.vsix
- uses: actions/upload-artifact@v3
with:
path: bin/
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`

- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: "bin/**/*.vsix"
yarn global add vsce
yarn install
- name: Publish
run: |
echo $RELEASE_VERSION
vsce publish -p $VSCODE_TOKEN --no-git-tag-version ${RELEASE_VERSION:1}
env:
VSCODE_TOKEN: ${{ secrets.VSCODE_TOKEN }}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "langoustine-vscode",
"description": "Langoustine VS Code extension - for language server developers",
"author": "Neandertech",
"author": "neandertech",
"version": "0.0.1",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/neandertech/langoustine-vscode"
},
"publisher": "neander.tech",
"publisher": "neandertech",
"categories": [],
"engines": {
"vscode": "^1.66.0"
Expand Down

0 comments on commit e34487e

Please sign in to comment.