From 17912cc97bab399aa09247030cb0671d3f2f96ad Mon Sep 17 00:00:00 2001 From: Nicolai Schmid Date: Sun, 12 Jul 2020 14:50:26 +0200 Subject: [PATCH] ci: switch to github actions for CI --- .github/workflows/release.yml | 27 +++++++++++++++++++++++++++ .travis.yml | 18 ------------------ 2 files changed, 27 insertions(+), 18 deletions(-) create mode 100644 .github/workflows/release.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..61dbca5 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,27 @@ +name: Release +on: + push: + branches: + - master +jobs: + release: + name: Release + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v1 + - name: Setup Node.js + uses: actions/setup-node@v1 + with: + node-version: 12 + - name: Install dependencies + run: yarn --frozen-lockfile + - name: Build + run: yarn build + - name: Test + run: yarn test + - name: Release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + run: npx semantic-release --generate-notes diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index af5cbfe..0000000 --- a/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -language: node_js -node_js: - - node - -cache: - yarn: true - -script: - - npm run build - -deploy: - provider: npm - email: $NPM_EMAIL - skip_cleanup: true - api_key: $NPM_TOKEN - on: - branch: master - tags: true