-
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.
Merge pull request #30 from NxtLvLSoftware/dev-to-dist
Merge dev changes to dist
- Loading branch information
Showing
4 changed files
with
37 additions
and
17 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 |
---|---|---|
|
@@ -16,8 +16,8 @@ env: | |
NODE_VERSION: 20 | ||
|
||
jobs: | ||
build-docs: | ||
name: Generate site | ||
wait-for-package-publish: | ||
name: Wait for package publish workflow success | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
|
||
|
@@ -30,6 +30,13 @@ jobs: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
wait-interval: 10 | ||
|
||
build-docs: | ||
name: Generate site | ||
needs: [wait-for-package-publish] | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Remove README.md index lines | ||
|
@@ -48,10 +55,10 @@ jobs: | |
key: ${{ runner.os }}}-${{ env.NODE_VERSION }}-node_modules-${{ hashFiles('package.json') }} | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
run: npm run clean-install | ||
|
||
- name: Build alpine-typescript | ||
run: npm run docs-ci | ||
- name: Build alpine-typescript docs | ||
run: npm run docs-dist | ||
|
||
- name: Copy favicon to /docs-build | ||
run: | | ||
|
@@ -64,18 +71,11 @@ jobs: | |
|
||
build-example: | ||
name: Generate example site | ||
needs: [wait-for-package-publish] | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
|
||
steps: | ||
- name: Wait for publish success | ||
uses: lewagon/[email protected] | ||
with: | ||
ref: ${{ github.ref }} | ||
check-name: Publish to npm registry | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
wait-interval: 10 | ||
|
||
- uses: actions/checkout@v3 | ||
with: | ||
sparse-checkout: | | ||
|
@@ -103,10 +103,10 @@ jobs: | |
key: ${{ runner.os }}}-${{ env.NODE_VERSION }}-node_modules-${{ hashFiles('package.json') }} | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
run: npm clean-install | ||
|
||
- name: Build example project | ||
run: npm run build-ci | ||
run: npm run build-dist | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
|
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
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,10 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/tsconfig", | ||
"extends": "./tsconfig.json", | ||
"include": [ | ||
"types/**/*.d.ts" | ||
], | ||
"compilerOptions": { | ||
"noEmit": true | ||
} | ||
} |
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