diff options
author | Valentin Popov <info@valentineus.link> | 2020-03-26 21:16:28 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-03-26 21:16:28 +0300 |
commit | e214aeb8a58cec914fc0483990b0e1db99b137f0 (patch) | |
tree | 2468582ff499647185d6904fcca9e10c4e805fe4 | |
parent | 3f3d4da18b5aece01641cba90206b1d33c467545 (diff) | |
download | eslint-config-e214aeb8a58cec914fc0483990b0e1db99b137f0.tar.xz eslint-config-e214aeb8a58cec914fc0483990b0e1db99b137f0.zip |
Add GitHub Action
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r-- | .editorconfig | 2 | ||||
-rw-r--r-- | .github/workflows/publish.yml | 21 | ||||
-rw-r--r-- | .gitlab-ci.yml | 19 |
3 files changed, 21 insertions, 21 deletions
diff --git a/.editorconfig b/.editorconfig index d058e45..2c83ce3 100644 --- a/.editorconfig +++ b/.editorconfig @@ -12,9 +12,7 @@ tab_width = 4 trim_trailing_whitespace = true [*.json] -indent_size = 2 indent_style = space [*.yml] -indent_size = 2 indent_style = space diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..a73e8ea --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,21 @@ +name: CI + +on: + create: + tags: + - v* + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: borales/actions-yarn@v2.0.0 + with: + cmd: install + - uses: borales/actions-yarn@v2.0.0 + with: + cmd: build + - uses: borales/actions-yarn@v2.0.0 + with: + cmd: publish diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 6c8df84..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,19 +0,0 @@ -image: "node:latest" - -cache: - paths: - - node_modules/ - -job-publish: - only: - - tags - - before_script: - - curl -o- -L https://yarnpkg.com/install.sh | bash - - export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH" - - script: - - yarn install - - yarn run build - - echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc - - npm publish |