Skip to content

Commit

Permalink
Simplified workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
toebeann committed Aug 9, 2022
1 parent 19d64d5 commit 77cbab4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 34 deletions.
34 changes: 1 addition & 33 deletions .github/workflows/publish-api-reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:


jobs:
test:
deploy-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand Down Expand Up @@ -43,38 +43,6 @@ jobs:
- name: Check build compiles
run: npm run build

publish-api-reference:
needs: test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup node.js @ lts
uses: actions/setup-node@v3

- name: Cache node_modules
id: cache-npm
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- if: ${{ steps.cache-npm.outputs.cache-hit == 'false '}}
name: List the state of node modules
continue-on-error: true
run: npm list

- name: Install dependencies
run: npm ci

- name: Generate API reference
run: npm run docs

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
workflow_dispatch:

jobs:
build:
publish-npm:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand Down

0 comments on commit 77cbab4

Please sign in to comment.