diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..a2ec96f --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,25 @@ +name: Build +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + release: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 18 + + - name: Install dependencies + run: npm i + + - name: Lint + run: npm run lint + + - name: Build + run: npm run compile diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..d08c431 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,28 @@ +--- +name: Release +on: + release: + types: + - published + +jobs: + release: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 18 + + - name: Install dependencies + run: npm i + + - name: Install vsce and ovsx + run: npm i -g vsce ovsx + + - name: Publish for VS Code + run: vsce publish -p ${{ secrets.VSCE_TOKEN }} + + - name: Publish for VS Codium + run: ovsx publish -p ${{ secrets.OVSX_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 594d356..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,20 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - -## [Unreleased] - -## [1.0.1] - 2020-12-11 - -### Fixed - -- Included missing example image in VS Code Extension bundle -- Also accepts default `coverage` -- The config `swift-coverage.coverageFilePattern` was ignored - -## [1.0.0] - 2020-08-29 - -- Initial release