Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
Switch to GH actions (#6)
Browse files Browse the repository at this point in the history
* ci: move ci to Github Actions
* chore: add package-lock-sanitizer
* chore: upgrade node-sass
* chore: add /css to gitignore

closes #5
  • Loading branch information
splashdust authored Jul 9, 2021
1 parent 70f612d commit 673cd15
Show file tree
Hide file tree
Showing 5 changed files with 34,892 additions and 10,101 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/ci-build-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI
on:
push:
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Get branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF##*/})"
id: branch

- name: Install dependencies
run: npm ci

- name: Build library
run: npm run build

- name: Run semantic release and publish new version to npm
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm run semantic-release

- name: Deploy documentation to GitHub Pages
if: github.ref == 'ref/head/master'
uses: JamesIves/[email protected]
with:
ACCESS_TOKEN: ${{ secrets.GH_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: . # The folder the action should deploy.
#TARGET_FOLDER: ${{ steps.branch.outputs.branch }} # The folder the action should deploy to.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
/dist
/tmp
/out-tsc
/css

# dependencies
/node_modules
Expand Down
31 changes: 0 additions & 31 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit 673cd15

Please sign in to comment.