Skip to content

Commit

Permalink
build: GH action for publish vscode extension
Browse files Browse the repository at this point in the history
  • Loading branch information
aljazerzen committed Jul 13, 2024
1 parent 2b3bc3e commit b55d0a2
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
on:
push:
tags:
- v*

jobs:
publish-vsce:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18.x
- run: npm install

- name: Publish vsce --pre-release
if: startsWith(github.ref, 'refs/tags/v') && contains(github.ref, '-')
run: ./node_modules/.bin/vsce publish --pre-release
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}

- name: Publish vsce
if: startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, '-')
run: ./node_modules/.bin/vsce publish
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "edgedb",
"displayName": "edgedb",
"description": "EdgeDB plugin for Sublime Text, Atom, and VSCode",
"version": "0.1.7",
"version": "0.1.8-prerelease",
"publisher": "magicstack",
"engines": {
"atom": "*",
Expand Down Expand Up @@ -96,6 +96,7 @@
"@types/node": "^18.14.6",
"@typescript-eslint/eslint-plugin": "^7.1.0",
"@typescript-eslint/parser": "^7.1.0",
"@vscode/vsce": "^2.30.0",
"eslint": "^8.57.0",
"syntaxdev": "^0.1.2",
"typescript": "^5.3.3"
Expand Down

0 comments on commit b55d0a2

Please sign in to comment.