Skip to content

Commit

Permalink
Merge pull request #6 from wp-blocks/v1
Browse files Browse the repository at this point in the history
V1.0.0 release
  • Loading branch information
erikyo authored Mar 24, 2024
2 parents 4c57711 + bf52e3d commit 19a3d30
Show file tree
Hide file tree
Showing 21 changed files with 11,225 additions and 10,716 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.cjs → .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
env: {
node: true,
es6: true
es2021: true
},
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
parser: '@typescript-eslint/parser',
Expand Down
29 changes: 13 additions & 16 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Documentation CI
# Simple workflow for deploying static content to GitHub Pages
name: TypeDoc generation

on:
push:
release:
branches: [ "master" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -22,24 +23,20 @@ jobs:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
contents: read
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

# Specify runner + deployment step
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Checkout code
uses: actions/checkout@v3

- name: Install dependencies
run: npm install

- name: Build documentation
run: npx typedoc src/* --out docs
- name: TypeDoc Action
uses: erikyo/tsdoc-action@v1
with:
source_dir: ./src/**/*
output_dir: ./docs
skipErrorChecking: true
darkHighlightTheme: dark-plus
basePath: ./src/

- name: Setup Pages
uses: actions/configure-pages@v3
Expand Down
28 changes: 11 additions & 17 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,22 @@ on:
branches: [ "master" ]

jobs:
node-build:
name: "Build scripts"

test:
name: Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
node-version: [ 14.x, 18.x, latest ]
os: [ ubuntu-latest, macos-latest, windows-latest ]

node-version:
- 20
- lts/*
os:
- ubuntu-latest
- windows-latest
steps:
- name: "Checkout"
uses: "actions/checkout@v3"

- name: "Install NodeJS"
uses: "actions/setup-node@v3"
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- run: npm install
- run: npm run build --if-present
- run: npm test

Loading

0 comments on commit 19a3d30

Please sign in to comment.