This repository has been archived by the owner on Nov 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
1 parent
70f612d
commit 673cd15
Showing
5 changed files
with
34,892 additions
and
10,101 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,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. |
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 |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
/dist | ||
/tmp | ||
/out-tsc | ||
/css | ||
|
||
# dependencies | ||
/node_modules | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.