diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 671531914..b8c0f6afa 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,87 +1,15 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file + version: 2 updates: - - package-ecosystem: npm - directory: '/' + - package-ecosystem: "github-actions" + directory: "/" schedule: - interval: weekly - day: saturday - time: '07:07' - timezone: America/Los_Angeles - open-pull-requests-limit: 10 - versioning-strategy: increase - ignore: - - dependency-name: husky - versions: - - '>= 6.a, < 7' - - dependency-name: postcss - versions: - - 8.2.10 - - 8.2.12 - - 8.2.6 - - 8.2.7 - - 8.2.8 - - 8.2.9 - - dependency-name: '@types/jest' - versions: - - 26.0.21 - - 26.0.22 - - dependency-name: eslint - versions: - - 7.22.0 - - 7.23.0 - - 7.24.0 - - dependency-name: '@typescript-eslint/eslint-plugin' - versions: - - 4.14.1 - - 4.15.0 - - 4.15.1 - - 4.15.2 - - 4.16.1 - - 4.17.0 - - 4.18.0 - - 4.19.0 - - 4.20.0 - - 4.21.0 - - 4.22.0 - - dependency-name: husky - versions: - - 5.0.9 - - 5.1.1 - - 5.1.3 - - 5.2.0 - - dependency-name: typescript - versions: - - 4.1.5 - - 4.2.2 - - 4.2.3 - - dependency-name: ts-jest - versions: - - 26.5.0 - - 26.5.1 - - 26.5.2 - - 26.5.3 - - dependency-name: check-node-version - versions: - - 4.1.0 - - dependency-name: lint-staged - versions: - - 10.5.4 - - dependency-name: '@types/node' - versions: - - 14.14.22 - - 14.14.27 - - dependency-name: autoprefixer - versions: - - 10.2.3 - - 10.2.4 - - dependency-name: '@typescript-eslint/parser' - versions: - - 4.14.1 - - 4.18.0 - - 4.19.0 - - 4.20.0 - - 4.21.0 - - 4.22.0 - - dependency-name: '@typescript-eslint/typescript-estree' - versions: - - 4.14.1 + interval: "daily" + - package-ecosystem: "npm" + directory: "/" + schedule: + interval: "daily" diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 041160cce..b0877856c 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -1,27 +1,27 @@ name: Playwright Tests on: push: - branches: [ main, master ] + branches: [main, master] pull_request: - branches: [ main, master ] + branches: [main, master] jobs: test: timeout-minutes: 60 runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: 16 - - name: Install dependencies - run: npm ci - - name: Install Playwright Browsers - run: npx playwright install --with-deps - - name: Run Playwright tests - run: npx playwright test - - uses: actions/upload-artifact@v3 - if: always() - with: - name: playwright-report - path: playwright-report/ - retention-days: 30 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + - name: Install dependencies + run: npm ci + - name: Install Playwright Browsers + run: npx playwright install --with-deps + - name: Run Playwright tests + run: npx playwright test + - uses: actions/upload-artifact@v3 + if: always() + with: + name: playwright-report + path: playwright-report/ + retention-days: 30 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0de0f46b4..416cd4186 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,6 +2,11 @@ name: Publish package to GitHub Packages on: release: types: [created] + workflow_dispatch: + +permissions: + contents: read + packages: write jobs: build: @@ -10,20 +15,15 @@ jobs: contents: read packages: write steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 + - uses: actions/checkout@v4 # Setup .npmrc file to publish to GitHub Packages - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: '16.x' + node-version: '20.x' registry-url: 'https://npm.pkg.github.com' # Defaults to the user or organization that owns the workflow file scope: '@kedyou' - - name: Build and publish - run: | - npm version --no-git-tag-version ${{ github.event.release.tag_name }} - npm ci - npm publish + - run: npm ci + - run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ae913e3fd..5bfe94e7e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,29 +1,29 @@ name: Run Tests on: push: - branches: [ main, master ] + branches: [main, master] pull_request: - branches: [ main, master ] + branches: [main, master] jobs: test: timeout-minutes: 20 runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: 16 - - name: Install dependencies - run: npm ci - - name: Build library - run: npm run build - - name: Install Playwright Browsers - run: npx playwright install --with-deps - - name: Run All tests - run: npm test - - uses: actions/upload-artifact@v3 - if: always() - with: - name: playwright-report - path: playwright-report/ - retention-days: 30 + - uses: actions/setup-node@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + - name: Install dependencies + run: npm ci + - name: Build library + run: npm run build + - name: Install Playwright Browsers + run: npx playwright install --with-deps + - name: Run All tests + run: npm test + - uses: actions/upload-artifact@v3 + if: always() + with: + name: playwright-report + path: playwright-report/ + retention-days: 30 diff --git a/package-lock.json b/package-lock.json index 913c725ec..c0ec2691a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@kedyou/mathlive", - "version": "0.102.0", + "version": "0.101.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@kedyou/mathlive", - "version": "0.102.0", + "version": "0.101.0", "license": "MIT", "dependencies": { "@cortex-js/compute-engine": "0.24.1"