Skip to content

Commit

Permalink
Allow newlines where whitespace is allowed (#12)
Browse files Browse the repository at this point in the history
New CI workflow
Bumps version to 0.4.2, updated changelog
  • Loading branch information
c4deszes authored Nov 14, 2022
1 parent 73f646a commit 4224de4
Show file tree
Hide file tree
Showing 6 changed files with 217 additions and 184 deletions.
60 changes: 0 additions & 60 deletions .github/workflows/build.yml

This file was deleted.

133 changes: 133 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
name: CI

on:
push:
branches:
- master
tags:
- v*
pull_request:
paths-ignore:
- '*.md'
- '**/*.md'
- 'docs/**.*'

jobs:
test:
name: Test
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 10.x

- name: Install
run: npm install

- name: Test (Linux)
if: runner.os == 'Linux'
run: xvfb-run -a npm test

- name: Test (Windows & Mac)
run: npm test
if: runner.os != 'Linux'

package:
name: Package
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 10.x

- name: Install
run: npm install

- name: Package
run: npm run package-vsix

- name: Archive
uses: actions/upload-artifact@v3
with:
name: extension
path: '*.vsix'
if-no-files-found: error

release-vsce:
name: Release on VS Marketplace
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 10.x

- name: Install
run: npm install

- name: Deploy using VSCE
run: npm run deploy-vsce
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}

release-ovsx:
name: Release on Open VSX
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 10.x

- name: Install
run: npm install

- name: Deploy using OVSX
run: npm run deploy-ovsx
env:
OVSX_PAT: ${{ secrets.OVSX_PAT }}

release-github:
name: Release on Github
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Get version from tag
id: tag_name
run: echo "current_version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT

- name: Read Changelog
id: changelog
uses: mindsers/changelog-reader-action@v2
with:
validation_level: warn
version: ${{ steps.tag_name.outputs.current_version }}
path: CHANGELOG.md

- name: Create Release
uses: softprops/action-gh-release@v1
with:
name: Release ${{ steps.changelog.outputs.version }}
body: ${{ steps.changelog.outputs.changes }}
46 changes: 0 additions & 46 deletions .github/workflows/release.yml

This file was deleted.

6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how

## [Unreleased]

## [0.4.2] - 2022-11-14

### Fixed

- Newline characters `\r\n` are now accepted in most locations where whitespace is allowed

## [0.4.1] - 2021-11-15

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"lin"
],
"license": "MIT",
"version": "0.4.1",
"version": "0.4.2",
"preview": true,
"publisher": "c4deszes",
"repository": {
Expand Down
Loading

0 comments on commit 4224de4

Please sign in to comment.