Skip to content

Commit

Permalink
Merge pull request #31 from DiFuks/support-typedoc-0-25
Browse files Browse the repository at this point in the history
Support typedoc 0.26
  • Loading branch information
DiFuks authored Jun 25, 2024
2 parents cb84fc7 + 52abbfe commit 0df920f
Show file tree
Hide file tree
Showing 45 changed files with 4,961 additions and 5,413 deletions.
1 change: 1 addition & 0 deletions .github/LICENSE.md
1 change: 1 addition & 0 deletions .github/README.md
76 changes: 56 additions & 20 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,53 +1,89 @@
name: Publish to npm
name: Build and Publish

on:
push:
branches:
- master
on: push

jobs:
build-and-publish:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/plugin
env:
NPM_DIFUKS_TOKEN: ${{ secrets.NPM_DIFUKS_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
token: ${{ secrets.PERSONAL_TOKEN }}
fetch-depth: 0

- name: Cache yarn
uses: actions/cache@v3
# for yarn version check
- if: github.ref != 'refs/heads/master'
run: |
git fetch --unshallow origin master
- uses: actions/setup-node@v4
with:
path: |
.yarn/cache
.yarn/install-state.gz
key: ${{ runner.os }}-yarn-${{ github.sha }}
restore-keys: |
${{ runner.os }}-yarn-
node-version-file: .nvmrc
cache: yarn
cache-dependency-path: yarn.lock

- name: Install modules
run: yarn install
run: yarn

- name: Build libs
- name: Build plugin
run: yarn build

- name: Eslint
- name: Lint plugin
run: yarn lint

- name: Check packages versions
if: github.ref != 'refs/heads/master'
run: yarn version check

- name: Apply versions
if: github.ref == 'refs/heads/master'
run: yarn version apply

- name: Publish package
if: github.ref == 'refs/heads/master'
run: yarn npm publish --tolerate-republish

- uses: stefanzweifel/git-auto-commit-action@v4
- uses: stefanzweifel/git-auto-commit-action@v5
if: github.ref == 'refs/heads/master'
with:
commit_message: |
ci: Release packages
[skip ci]
- name: Get package version
if: github.ref == 'refs/heads/master'
id: package-version
uses: martinbeentjes/[email protected]
with:
path: packages/plugin

- uses: stefanzweifel/git-auto-commit-action@v5
if: github.ref == 'refs/heads/master'
with:
tagging_message: v${{ steps.package-version.outputs.current-version }}
commit_message: |
ci: Release packages
[skip ci]
- name: Get pull request info
if: github.ref == 'refs/heads/master'
id: pull-request-info
uses: actions-ecosystem/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

- uses: ncipollo/release-action@v1
id: create-release
if: github.ref == 'refs/heads/master'
with:
skipIfReleaseExists: true
makeLatest: true
name: Release ${{ steps.package-version.outputs.current-version }}
body: ${{ steps.pull-request-info.outputs.body }}
tag: v${{ steps.package-version.outputs.current-version }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ docs
.idea/
.pnp.*
.yarn/*
node_modules
!.yarn/patches
!.yarn/plugins
!.yarn/releases
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.13.0
550 changes: 0 additions & 550 deletions .yarn/plugins/@yarnpkg/plugin-version.cjs

This file was deleted.

28 changes: 0 additions & 28 deletions .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

This file was deleted.

874 changes: 0 additions & 874 deletions .yarn/releases/yarn-3.6.1.cjs

This file was deleted.

894 changes: 894 additions & 0 deletions .yarn/releases/yarn-4.3.1.cjs

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions .yarn/versions/2ce8f543.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
releases:
typedoc-theme-hierarchy: major
16 changes: 10 additions & 6 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
enableGlobalCache: true

nodeLinker: pnp

npmAuthToken: "${NPM_DIFUKS_TOKEN:-}"
Expand All @@ -6,10 +8,12 @@ npmPublishAccess: public

npmRegistryServer: "https://registry.npmjs.com/"

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-version.cjs
spec: "@yarnpkg/plugin-version"
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: "@yarnpkg/plugin-workspace-tools"
packageExtensions:
typedoc@*:
peerDependencies:
typedoc-theme-hierarchy: "*"
eslint-module-utils@*:
dependencies:
eslint-import-resolver-typescript: "3.6.1"

yarnPath: .yarn/releases/yarn-3.6.1.cjs
yarnPath: .yarn/releases/yarn-4.3.1.cjs
190 changes: 0 additions & 190 deletions assets/js/HierarchyManager.ts

This file was deleted.

45 changes: 0 additions & 45 deletions assets/js/StateManager.ts

This file was deleted.

Loading

0 comments on commit 0df920f

Please sign in to comment.