Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
105 changes: 0 additions & 105 deletions .circleci/config.yml

This file was deleted.

11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# 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/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
91 changes: 91 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
name: PIE Math Validation CI

on:
push:
branches: [develop, master]
pull_request:
branches: [develop, master]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0 # REQUIRED for lerna version
- name: Configure Git
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
- uses: actions/setup-node@v5
with:
node-version: 24
cache: yarn
- name: Install dependencies
run: yarn install --frozen-lockfile
- run: yarn run test

build-next:
needs: test
if: >
github.event_name == 'push' &&
github.ref == 'refs/heads/develop'
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
issues: write
id-token: write # REQUIRED for npm trusted publishing
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0 # REQUIRED for lerna version
- name: Configure Git
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
- uses: actions/setup-node@v5
with:
node-version: 24
registry-url: https://registry.npmjs.org/
cache: yarn
- run: yarn install --frozen-lockfile
env:
PUPPETEER_SKIP_DOWNLOAD: true
- run: yarn run build
- run: yarn run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build-release:
needs: test
if: >
github.event_name == 'push' &&
github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
issues: write
id-token: write # REQUIRED for npm trusted publishing
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0 # REQUIRED for lerna version
- name: Configure Git
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Prune orphaned Git tags
run: |
git fetch origin --prune --tags --force
- uses: actions/setup-node@v5
with:
node-version: 24
registry-url: https://registry.npmjs.org/
cache: yarn
- run: yarn install --frozen-lockfile
- run: yarn run build
- run: yarn run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16 changes: 0 additions & 16 deletions .releaserc

This file was deleted.

29 changes: 18 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,13 @@
],
"scripts": {
"build": "rollup -c",
"release": "yarn tsc && semantic-release",
"watch": "rollup -cw",
"test": "jest",
"test:report": "jest --config jest-stare.config.js",
"build:demo": "tsc && yarn rollup -c rollup.config.js",
"demo": "yarn rollup -c rollup.config.js && serve docs"
"demo": "yarn rollup -c rollup.config.js && serve docs",
"semantic-release": "yarn tsc && semantic-release"
},
"author": "",
"license": "ISC",
"dependencies": {
"lodash": "^4.17.21",
Expand All @@ -30,12 +29,13 @@
"@rollup/plugin-node-resolve": "^9.0.0",
"@rollup/plugin-strip": "^2.1.0",
"@rollup/plugin-sucrase": "^3.1.0",
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/commit-analyzer": "^8.0.1",
"@semantic-release/git": "^9.0.0",
"@semantic-release/github": "^7.2.3",
"@semantic-release/npm": "^7.1.3",
"@semantic-release/release-notes-generator": "^9.0.3",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/commit-analyzer": "^13.0.1",
"@semantic-release/exec": "^7.1.0",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^12.0.6",
"@semantic-release/npm": "^13.1.5",
"@semantic-release/release-notes-generator": "^14.1.0",
"@types/fs-extra": "^9.0.1",
"@types/glob": "^7.1.3",
"@types/jest": "^26.0.14",
Expand All @@ -55,10 +55,17 @@
"prettier": "^2.3.2",
"rollup": "^2.50.2",
"rollup-plugin-cleanup": "^3.2.1",
"semantic-release": "^17.4.7",
"semantic-release": "^25.0.3",
"serve": "^11.3.2",
"ts-jest": "^26.3.0",
"ts-node": "^9.0.0",
"typescript": "^4.2.3"
"typescript": "^4.9.5"
},
"repository": {
"type": "git",
"url": "git@github.com:pie-framework/math-validation.git"
},
"publishConfig": {
"access": "public"
}
}
18 changes: 18 additions & 0 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = {
plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
'@semantic-release/changelog',
'@semantic-release/npm',
[
'@semantic-release/git',
{
assets: ['package.json', 'CHANGELOG.md'],
message:
'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}',
},
],
'@semantic-release/github',
],
branches: [{ name: 'master' }],
};
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"rootDir": "src",
"outDir": "lib",
"moduleResolution": "Node",
"sourceMap": true
"sourceMap": true,
"skipLibCheck": true
},
"exclude": ["node_modules", "lib", "**/__tests__/**", "src/fixtures", "playground", "old-stuff", "wip-src" ]
}
Loading