Skip to content

Commit

Permalink
chore: replace travis-ci with github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
PSanetra committed Jan 8, 2022
1 parent 3951a17 commit aa1a0de
Show file tree
Hide file tree
Showing 7 changed files with 12,606 additions and 24,790 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/bump-version.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Bump Version
on:
push:
branches:
- master

jobs:
test:
name: Bump Version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: PSanetra/git-semver-actions/next@v1
id: next_version
- uses: PSanetra/git-semver-actions/latest@v1
id: latest_version
- uses: PSanetra/git-semver-actions/markdown-log@v1
id: markdown_log
- name: Create Release
id: create_release
uses: actions/create-release@v1
if: ${{ steps.next_version.outputs.version != steps.latest_version.outputs.version }}
env:
# With github.token the publish workflow is never triggered
GITHUB_TOKEN: ${{ secrets.PAT_GITHUB }}
with:
tag_name: "v${{ steps.next_version.outputs.version }}"
body: "${{ steps.markdown_log.outputs.changelog }}"
release_name: Release ${{ steps.next_version.outputs.version }}
draft: false
prerelease: false
31 changes: 31 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish Package to npmjs
on:
push:
tags:
- v*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v2
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- run: npm version ${{ github.ref_name }} --no-git-tag-version
- run: npm ci
- run: npm run test:prod
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- run: npm run build
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: docs
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit aa1a0de

Please sign in to comment.