Skip to content

build(deps-dev): bump @vscode/vsce from 2.24.0 to 2.31.1 (#155) #268

build(deps-dev): bump @vscode/vsce from 2.24.0 to 2.31.1 (#155)

build(deps-dev): bump @vscode/vsce from 2.24.0 to 2.31.1 (#155) #268

Workflow file for this run

name: CI/CD
on:
pull_request:
push:
branches:
- main
jobs:
test:
name: Test
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: "yarn"
- name: Set up yarn cache directory
id: yarn-cache-dir-path
run: |
echo "::set-output name=dir::$(yarn cache dir)"
- run: yarn install --frozen-lockfile
- run: yarn test:coverage
if: runner.os == 'macOs'
- run: xvfb-run -a yarn test
if: runner.os == 'Linux'
- run: yarn test
if: runner.os == 'Windows'
- name: Upload coverage to Codecov
if: runner.os == 'macOs'
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
semantic-release:
name: "Release"
runs-on: ubuntu-latest
needs: ["test"]
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
steps:
- name: "Checkout"
uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@v3
with:
node-version: 18
- uses: bahmutov/npm-install@v1
with:
useRollingCache: true
install-command: yarn --frozen-lockfile
- name: "Build package"
run: yarn build
- name: "Release"
id: "release"
uses: codfish/semantic-release-action@v2.2.0
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}