Skip to content

bump version

bump version #45

Workflow file for this run

on:
push:
tags:
- "*"
name: Deploy Extension
jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- name: validate version
run: |
VERSION=$(jq -r .version package.json)
if [[ "$GITHUB_REF_NAME" != "v$VERSION" ]]; then
echo "package.json version $VERSION does not match commit tag $GITHUB_REF_NAME"
exit 1
fi
- uses: actions/setup-node@v4
with:
node-version: "18.x"
- name: Setup Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: 1.15.x
otp-version: 26.x
- run: npm ci
- run: cd elixir-ls && mix deps.get
- name: Dry run
uses: HaaLeo/publish-vscode-extension@v1
if: ${{ contains(github.ref, '-rc.') }}
with:
pat: "dummy"
preRelease: true
dryRun: true
- name: set publisher for Visual Studio Marketplace
if: ${{ !contains(github.ref, '-rc.') }}
run: |
jq '.publisher = "JakeBecker"' package.json > package_temp.json
mv package_temp.json package.json
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v1
if: ${{ !contains(github.ref, '-rc.') }}
with:
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com
# preRelease: ${{ contains(github.ref, '-rc.') }}
- name: set publisher for Open VSX Registry
if: ${{ !contains(github.ref, '-rc.') }}
run: |
jq '.publisher = "elixir-lsp"' package.json > package_temp.json
mv package_temp.json package.json
- name: Publish to Open VSX Registry
uses: HaaLeo/publish-vscode-extension@v1
if: ${{ !contains(github.ref, '-rc.') }}
with:
pat: ${{ secrets.OPEN_VSX_TOKEN }}
# preRelease: ${{ contains(github.ref, '-rc.') }}