Skip to content

Set version in release #26

Set version in release

Set version in release #26

Workflow file for this run

on:
release:
types:
- published
pull_request:
branches:
- "*"
jobs:
build:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18.x
- run: yarn install --ignore-engines
# - run: xvfb-run -a npm test
# if: runner.os == 'Linux'
# - run: npm test
# if: runner.os != 'Linux'
- name: Write release version
run: |
VERSION=${GITHUB_REF_NAME#v}
echo Version: $VERSION
echo "VERSION=$VERSION" >> $GITHUB_ENV
- run: "npm version 1.0.0 --no-commit-hooks"
- name: Publish
run: yarn deploy
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}