forked from redhat-developer/yaml-language-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use next yaml parser (redhat-developer#341)
* Use 'yaml-language-server-parser' insead of 'yaml-ast-parser-custom-tags' Signed-off-by: Yevhen Vydolob <[email protected]> * Release with GH Action Signed-off-by: Yevhen Vydolob <[email protected]> * Replace 'npm' with 'yarn' Signed-off-by: Yevhen Vydolob <[email protected]>
- Loading branch information
Showing
8 changed files
with
81 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: Release to NPM | ||
|
||
# Controls when the action will run. Triggers the workflow on push or pull request | ||
# events but only for the master branch | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
|
||
# Set up Node | ||
- name: Use Node 12 | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
# Run install dependencies | ||
- name: Install dependencies | ||
run: yarn | ||
|
||
# Build extension | ||
- name: Run build | ||
run: yarn build | ||
|
||
# Run tests | ||
- name: Run Test | ||
run: yarn test | ||
|
||
# Publish to npm | ||
- run: | | ||
yarn check-dependencies | ||
yarn publish --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* -------------------------------------------------------------------------------------------- | ||
* Copyright (c) Red Hat, Inc. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
* ------------------------------------------------------------------------------------------ */ | ||
|
||
//check package.json do not have dependency with 'next' version | ||
|
||
/* eslint-disable @typescript-eslint/no-var-requires */ | ||
|
||
const exit = require('process').exit; | ||
const dependencies = require('../package.json').dependencies; | ||
|
||
for (const dep in dependencies) { | ||
if (Object.prototype.hasOwnProperty.call(dependencies, dep)) { | ||
const version = dependencies[dep]; | ||
if (version === 'next') { | ||
console.error(`Dependency ${dep} has "${version}" version, please change it to fixed version`); | ||
exit(1); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2345,10 +2345,10 @@ yallist@^2.1.2: | |
resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52" | ||
integrity sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI= | ||
|
||
yaml-[email protected]: | ||
version "0.0.43" | ||
resolved "https://registry.yarnpkg.com/yaml-ast-parser-custom-tags/-/yaml-ast-parser-custom-tags-0.0.43.tgz#46968145ce4e24cb03c3312057f0f141b93a7d02" | ||
integrity sha512-R5063FF/JSAN6qXCmylwjt9PcDH6M0ExEme/nJBzLspc6FJDmHHIqM7xh2WfEmsTJqClF79A9VkXjkAqmZw9SQ== | ||
yaml-language-server-parser@next: | ||
version "0.1.1-2b9337f.0" | ||
resolved "https://registry.yarnpkg.com/yaml-language-server-parser/-/yaml-language-server-parser-0.1.1-2b9337f.0.tgz#7d67395157117c1fdbfa1053506eca48f92f5d67" | ||
integrity sha512-EHWndWCG23PlWqQSIElTQoHP2uklvGcZLiq+mqj4CUmrNiLVRRtX5CqhXU0ebOV3h0PeMYrntkiWZ6BcyhgdOg== | ||
|
||
yargs-parser@^13.0.0, yargs-parser@^13.1.2: | ||
version "13.1.2" | ||
|