Skip to content

Commit

Permalink
[add] GitHub repository settings
Browse files Browse the repository at this point in the history
[optimize] upgrade Split View & Stepper components to WebCell v3
[optimize] update Upstream packages & actions
  • Loading branch information
TechQuery committed Nov 25, 2024
1 parent d3e8905 commit 1d6e51b
Show file tree
Hide file tree
Showing 8 changed files with 1,893 additions and 1,494 deletions.
85 changes: 85 additions & 0 deletions .github/settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# These settings are synced to GitHub by https://probot.github.io/apps/settings/

repository:
allow_merge_commit: false

delete_branch_on_merge: true

enable_vulnerability_alerts: true

labels:
- name: bug
color: '#d73a4a'
description: Something isn't working

- name: documentation
color: '#0075ca'
description: Improvements or additions to documentation

- name: duplicate
color: '#cfd3d7'
description: This issue or pull request already exists

- name: enhancement
color: '#a2eeef'
description: Some improvements

- name: feature
color: '#16b33f'
description: New feature or request

- name: good first issue
color: '#7057ff'
description: Good for newcomers

- name: help wanted
color: '#008672'
description: Extra attention is needed

- name: invalid
color: '#e4e669'
description: This doesn't seem right

- name: question
color: '#d876e3'
description: Further information is requested

- name: wontfix
color: '#ffffff'
description: This will not be worked on

branches:
- name: main
# https://docs.github.com/en/rest/reference/repos#update-branch-protection
protection:
# Required. Require at least one approving review on a pull request, before merging. Set to null to disable.
required_pull_request_reviews:
# The number of approvals required. (1-6)
required_approving_review_count: 1
# Dismiss approved reviews automatically when a new commit is pushed.
dismiss_stale_reviews: true
# Blocks merge until code owners have reviewed.
require_code_owner_reviews: true
# Specify which users and teams can dismiss pull request reviews.
# Pass an empty dismissal_restrictions object to disable.
# User and team dismissal_restrictions are only available for organization-owned repositories.
# Omit this parameter for personal repositories.
dismissal_restrictions:
# users: []
# teams: []
# Required. Require status checks to pass before merging. Set to null to disable
required_status_checks:
# Required. Require branches to be up to date before merging.
strict: true
# Required. The list of status checks to require in order to merge into this branch
contexts: []
# Required. Enforce all configured restrictions for administrators.
# Set to true to enforce required status checks for repository administrators.
# Set to null to disable.
enforce_admins: true
# Prevent merge commits from being pushed to matching branches
required_linear_history: true
# Required. Restrict who can push to this branch.
# Team and user restrictions are only available for organization-owned repositories.
# Set to null to disable.
restrictions: null
15 changes: 9 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,30 @@ on:
jobs:
Build-and-Publish:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
registry-url: https://registry.npmjs.org
cache: pnpm
- name: Install Dependencies
run: pnpm i --frozen-lockfile

- name: Build & Publish
run: npm publish
run: npm publish --access public --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Update document
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
publish_dir: ./docs
personal_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
49 changes: 24 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "boot-cell",
"version": "2.0.0-beta.28",
"version": "2.0.0-rc.0",
"license": "LGPL-3.0",
"author": "[email protected]",
"description": "Web Components UI library based on WebCell v3, BootStrap v5, BootStrap Icon v1 & FontAwesome v6",
Expand All @@ -24,13 +24,14 @@
"main": "dist/index.js",
"module": "dist/index.esm.js",
"dependencies": {
"@swc/helpers": "^0.5.11",
"@swc/helpers": "^0.5.15",
"classnames": "^2.5.1",
"dom-renderer": "^2.1.8",
"mobx": "^6.12.4",
"dom-renderer": "^2.6.1",
"iterable-observer": "^1.1.0",
"mobx": "^6.13.5",
"regenerator-runtime": "^0.14.1",
"web-cell": "^3.0.0-rc.16",
"web-utility": "^4.4.0"
"web-cell": "^3.0.3",
"web-utility": "^4.4.2"
},
"peerDependencies": {
"@fortawesome/fontawesome-free": "^6",
Expand All @@ -42,38 +43,36 @@
},
"devDependencies": {
"@jest/types": "^29.6.3",
"@parcel/config-default": "^2.12.0",
"@parcel/packager-ts": "~2.12.0",
"@parcel/transformer-less": "~2.12.0",
"@parcel/transformer-typescript-tsc": "^2.12.0",
"@parcel/transformer-typescript-types": "~2.12.0",
"@parcel/config-default": "^2.13.1",
"@parcel/packager-ts": "~2.13.1",
"@parcel/transformer-less": "~2.13.1",
"@parcel/transformer-typescript-tsc": "^2.13.1",
"@parcel/transformer-typescript-types": "~2.13.1",
"@peculiar/webcrypto": "^1.5.0",
"@tech_query/snabbdom-looks-like": "^2.0.1",
"@types/jest": "^29.5.12",
"@types/jest": "^29.5.14",
"@types/resize-observer-browser": "^0.1.11",
"@types/turndown": "^5.0.4",
"@types/turndown": "^5.0.5",
"cross-env": "^7.0.3",
"element-internals-polyfill": "^1.3.11",
"husky": "^9.0.11",
"element-internals-polyfill": "^1.3.12",
"husky": "^9.1.7",
"identity-obj-proxy": "^3.0.0",
"iterable-observer": "^1.0.1",
"jest": "^29.7.0",
"less": "^4.2.0",
"lint-staged": "^15.2.7",
"lint-staged": "^15.2.10",
"markdown-area-element": "^0.2.3",
"open-cli": "^8.0.0",
"parcel": "~2.12.0",
"prettier": "^3.3.2",
"ts-jest": "^29.1.5",
"parcel": "~2.13.1",
"prettier": "^3.3.3",
"ts-jest": "^29.2.5",
"ts-node": "^10.9.2",
"typedoc": "^0.25.13",
"typedoc-plugin-mdn-links": "^3.1.30",
"typescript": "~5.4.5"
"typedoc": "^0.26.11",
"typedoc-plugin-mdn-links": "^4.0.1",
"typescript": "~5.7.2"
},
"scripts": {
"prepare": "husky",
"lint": "lint-staged",
"test": "lint-staged",
"test": "lint-staged && tsc --noEmit",
"start": "cd test/ && parcel index.html --open",
"pack-dist": "rm -rf dist/ && parcel build source/index.ts",
"pack-docs": "rm -rf docs/ && typedoc source/",
Expand Down
Loading

0 comments on commit 1d6e51b

Please sign in to comment.