-
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.
- updated ci workflows - added typedoc version plugin
- Loading branch information
Showing
8 changed files
with
201 additions
and
145 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 |
---|---|---|
|
@@ -18,7 +18,7 @@ jobs: | |
id: metadata | ||
uses: dependabot/[email protected] | ||
with: | ||
github-token: "${{ secrets.GH_TOKEN }}" | ||
github-token: "${{ secrets.GITHUB_TOKEN }}" | ||
skip-commit-verification: true | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
@@ -32,7 +32,7 @@ jobs: | |
fi | ||
env: | ||
PR_URL: ${{ github.event.pull_request.html_url }} | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Run unit tests | ||
run: | | ||
npm test | ||
|
@@ -42,11 +42,11 @@ jobs: | |
PR_URL=$(gh pr list --json state:open author:dependabot[bot] base:$PR_BASE_BRANCH -q '.[].url' | jq -r 'join(" ")') | ||
echo "::set-output name=pr_url::$PR_URL" | ||
env: | ||
PR_BASE_BRANCH: develop | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
PR_BASE_BRANCH: main | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Merge aggregated PRs | ||
if: steps.aggregate_prs.outputs.pr_url != '' | ||
run: | | ||
gh pr merge --auto --merge ${{ steps.aggregate_prs.outputs.pr_url }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file was deleted.
Oops, something went wrong.
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,55 @@ | ||
name: Release and Publish | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: write | ||
issues: write | ||
pull-requests: write | ||
id-token: write | ||
|
||
jobs: | ||
Test: | ||
uses: ./.github/workflows/test.yaml | ||
|
||
Publish: | ||
needs: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Create Directory | ||
run: mkdir -p ./lib ./node_modules | ||
|
||
- name: Download the build artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: cache | ||
path: ./ | ||
|
||
- name: Build | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: lts/* | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Semantic Release (Dry Run) | ||
run: npm run semantic-release:dry-run | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
- name: Semantic Release | ||
run: npm run semantic-release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
Document: | ||
needs: Publish | ||
uses: ./.github/workflows/docs.yaml | ||
|
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,89 @@ | ||
name: Publish Docs | ||
on: | ||
workflow_dispatch: | ||
workflow_call: | ||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
History: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Get the gh-pages repo | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: gh-pages | ||
|
||
- name: TAR the existing docs | ||
run: | | ||
mkdir -p ./docs | ||
tar -cvf documentation.tar ./docs | ||
- name: Create a document artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: documentation | ||
path: documentation.tar | ||
Build: | ||
needs: History | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout src | ||
uses: actions/checkout@v4 | ||
|
||
- name: Create Directory | ||
run: mkdir -p ./docs | ||
|
||
- name: Download the existing documents artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: documentation | ||
|
||
- run: tar -xf documentation.tar ./docs -C ./docs | ||
|
||
- name: Build | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: lts/* | ||
|
||
- name: Install NPM | ||
run: npm install --ignore-scripts | ||
|
||
- name: Build Documents | ||
run: npm run typedoc | ||
|
||
- name: Tar the new docs | ||
run: tar -cvf newdocumentation.tar ./docs | ||
|
||
- name: Create a new document artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: newdocumentation | ||
path: newdocumentation.tar | ||
Commit: | ||
needs: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the gh-pages repo | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: gh-pages | ||
|
||
- name: Create Directory | ||
run: mkdir -p ./docs | ||
|
||
- name: Download the new documents artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: newdocumentation | ||
|
||
- name: Extract Tar | ||
run: tar -xf newdocumentation.tar ./docs -C ./docs | ||
|
||
- name: Deploy to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v4 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./docs | ||
user_name: 'github-actions[bot]' | ||
user_email: 'github-actions[bot]@users.noreply.github.com' |
This file was deleted.
Oops, something went wrong.
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,41 @@ | ||
name: Test | ||
on: | ||
workflow_dispatch: | ||
workflow_call: | ||
pull_request: | ||
branches: | ||
- main | ||
types: | ||
- opened | ||
- synchronize | ||
|
||
jobs: | ||
Build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [20.x, 'lts/*', 'latest'] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Test with Node ${{matrix.node-version}} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{matrix.node-version}} | ||
|
||
- name: Run | ||
run: | | ||
npm install --package-lock-only | ||
npm install --ignore-scripts | ||
npm run build | ||
npm run test | ||
- name: Upload build artifact | ||
if: matrix.node-version == 'lts/*' | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: cache | ||
path: | | ||
package.json | ||
package-lock.json | ||
./lib |
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
Oops, something went wrong.