-
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.
chore: replace travis-ci with github actions
- Loading branch information
Showing
7 changed files
with
12,606 additions
and
24,790 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,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 |
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,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 }} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.