From 46314eddddba208685c28674086725be74f9be0a Mon Sep 17 00:00:00 2001 From: Oscar Hermoso Date: Mon, 26 Feb 2024 18:18:46 +0800 Subject: [PATCH] kedyou: fix pipelines --- .github/dependabot.yml | 96 ++++---------------------------- .github/workflows/playwright.yml | 36 ++++++------ .github/workflows/publish.yml | 20 +++---- .github/workflows/tests.yml | 40 ++++++------- CHANGELOG.md | 2 +- package-lock.json | 4 +- package.json | 2 +- 7 files changed, 64 insertions(+), 136 deletions(-) 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/CHANGELOG.md b/CHANGELOG.md index 37a9d43f1..09d56157a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## [Unreleased] +## 0.98.7 _2024-02-26_ ### Issues Resolved diff --git a/package-lock.json b/package-lock.json index 1722c1a66..48c1d76dd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@kedyou/mathlive", - "version": "0.98.6", + "version": "0.98.7-kedyou.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@kedyou/mathlive", - "version": "0.98.6", + "version": "0.98.7-kedyou.1", "license": "MIT", "dependencies": { "@cortex-js/compute-engine": "0.23.1" diff --git a/package.json b/package.json index fce8c71f8..0b3c5e16c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kedyou/mathlive", - "version": "0.98.6", + "version": "0.98.7-kedyou.1", "description": "A web component for math input", "license": "MIT", "funding": {