Skip to content

Commit

Permalink
Update gitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
G43riko committed Aug 26, 2021
1 parent dcc9696 commit 14e9c86
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,3 @@ jobs:
run: npm run build
- name: Test
run: npm run test
- name: Build documentation
run: npm run doc
- name: Deploy documentation
uses: JamesIves/github-pages-deploy-action@4.1.1
with:
branch: gh-pages # The branch the action should deploy to.
folder: docs # The folder the action should deploy.
15 changes: 12 additions & 3 deletions .github/workflows/release-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: NPM Release

on:
release:
types: [ published ]

types:
- created
jobs:
build:
timeout-minutes: 5
Expand All @@ -30,7 +30,16 @@ jobs:
run: npm run build
- name: Test
run: npm run test
- name: Publish
# Build and deploy documentation
- name: Build documentation
run: npm run doc
- name: Deploy documentation
uses: JamesIves/github-pages-deploy-action@4.1.1
with:
branch: gh-pages # The branch the action should deploy to.
folder: docs # The folder the action should deploy.
# Release new NPM Version
- name: Publish repository
run: npm publish dist --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS }}

0 comments on commit 14e9c86

Please sign in to comment.