From e214aeb8a58cec914fc0483990b0e1db99b137f0 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 26 Mar 2020 22:16:28 +0400 Subject: Add GitHub Action Signed-off-by: Valentin Popov --- .editorconfig | 2 -- .github/workflows/publish.yml | 21 +++++++++++++++++++++ .gitlab-ci.yml | 19 ------------------- 3 files changed, 21 insertions(+), 21 deletions(-) create mode 100644 .github/workflows/publish.yml delete mode 100644 .gitlab-ci.yml 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 -- cgit v1.2.3