From 3e913a67ef6a846ebacf4f609484b0a41ec084d2 Mon Sep 17 00:00:00 2001 From: Gordon Smith Date: Wed, 23 Oct 2024 09:45:51 +0100 Subject: [PATCH] chore: bootstrap releases for path: . --- .github/workflows/release-please.yml | 116 +++++++++++++++++++++++++++ .gitignore | 2 + .release-please-manifest.json | 38 +++++++++ package.json | 1 + release-please-config.json | 48 +++++++++++ 5 files changed, 205 insertions(+) create mode 100644 .github/workflows/release-please.yml create mode 100644 .release-please-manifest.json create mode 100644 release-please-config.json diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 0000000000..18caff1fdf --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,116 @@ +on: + push: + branches: + - trunk + - candidate-3.x.x + +permissions: + contents: write + pull-requests: write + +name: release-please + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - name: Initialize Release Please + id: release + uses: googleapis/release-please-action@v4 + with: + target-branch: ${{ github.ref_name }} + token: ${{ secrets.RELEASE_PLEASE_TOKEN }} + config-file: release-please-config.json + manifest-file: .release-please-manifest.json + + - name: Checkout Sources + if: ${{ steps.release.outputs.release_created }} + uses: actions/checkout@v4 + + - name: Install NodeJS + if: ${{ steps.release.outputs.release_created }} + uses: actions/setup-node@v4 + with: + node-version: 20 + registry-url: "https://registry.npmjs.org" + scope: "@hpcc-js" + + - name: Install OS Dependencies + if: ${{ steps.release.outputs.release_created }} + run: | + pip install pandas scikit-learn + + - name: Export GitHub Actions cache environment variables + if: ${{ steps.release.outputs.release_created }} + uses: actions/github-script@v7 + with: + script: | + core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); + core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); + + - name: Install Dependencies + if: ${{ steps.release.outputs.release_created }} + run: | + npm ci + + - name: Lint + if: ${{ steps.release.outputs.release_created }} + run: | + npm run lint-all + + - name: Build + if: ${{ steps.release.outputs.release_created }} + run: | + npm run build + + - name: Install Test Dependencies + if: ${{ steps.release.outputs.release_created }} + run: | + sudo apt-get update + sudo npx -y playwright install chromium --with-deps + npx -y playwright install chromium + wget https://github.com/hpcc-systems/HPCC-Platform/releases/download/community_9.6.50-1/hpccsystems-platform-community_9.6.50-1jammy_amd64_withsymbols.deb + + - name: Install HPCC Platform + if: ${{ steps.release.outputs.release_created }} + continue-on-error: true + run: | + sudo apt install -f ./hpccsystems-platform-community_9.6.50-1jammy_amd64_withsymbols.deb + sudo /etc/init.d/hpcc-init start + + - name: Test + if: ${{ steps.release.outputs.release_created }} + env: + CI: true + run: | + npm run test-local + + # - name: Calculate Coverage + # if: ${{ steps.release.outputs.release_created }} + # run: | + # npm run coverage + + # - name: Update Coveralls + # if: ${{ steps.release.outputs.release_created }} + # uses: coverallsapp/github-action@v2 + # with: + # github-token: ${{ secrets.GITHUB_TOKEN }} + + - name: Publish + if: ${{ steps.release.outputs.release_created }} + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + run: | + npm run publish + + - name: Purge jsdelivr + if: ${{ steps.release.outputs.release_created }} + run: | + npm run purge-jsdelivr + + - name: Upload error logs + if: ${{ failure() || cancelled() }} + uses: actions/upload-artifact@v4 + with: + name: all-logs + path: ./**/*.log diff --git a/.gitignore b/.gitignore index 2c93d8d066..8ccb0881ba 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .eclcc +.env .nx node_modules dist/ @@ -36,3 +37,4 @@ tmp*.json /demos/rwc2019 demos/h3/data .nx/cache +/packages/markdown-it-plugins/docs/obt/data diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000000..3801eb4d62 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,38 @@ +{ + ".": "2.106.11", + "packages/api": "2.13.0", + "packages/chart": "2.85.0", + "packages/codemirror": "2.63.0", + "packages/codemirror-shim": "2.36.0", + "packages/common": "2.72.0", + "packages/comms": "2.97.0", + "packages/composite": "2.8.2", + "packages/dataflow": "9.0.0", + "packages/ddl-shim": "2.21.0", + "packages/deck-shim": "2.7.0", + "packages/dgrid": "2.33.0", + "packages/dgrid-shim": "2.25.0", + "packages/dgrid2": "2.4.0", + "packages/eclwatch": "2.75.8", + "packages/esbuild-plugins": "1.1.2", + "packages/form": "2.11.2", + "packages/graph": "2.86.0", + "packages/html": "2.43.0", + "packages/layout": "2.50.2", + "packages/leaflet-shim": "2.4.0", + "packages/loader": "2.106.11", + "packages/map": "2.78.2", + "packages/map-deck": "2.8.0", + "packages/marshaller": "2.26.8", + "packages/observable-md": "2.54.19", + "packages/observablehq-compiler": "1.3.0", + "packages/other": "2.16.2", + "packages/phosphor": "2.19.2", + "packages/phosphor-shim": "2.15.0", + "packages/preact-shim": "2.17.0", + "packages/react": "2.54.0", + "packages/requirejs-shim": "2.2.0", + "packages/timeline": "2.53.1", + "packages/tree": "2.41.0", + "packages/util": "2.52.0" +} \ No newline at end of file diff --git a/package.json b/package.json index 1315582a1a..1bf8bbc757 100644 --- a/package.json +++ b/package.json @@ -104,6 +104,7 @@ "publish-prep": "run-s publish-clean-lint publish-version stamp build-all minimize gen-legacy-types test", "publish-finalize": "run-s publish-commit publish-lerna", "publish-gh-actions": "npm ci && npm run lint && npm run build && npm run minimize && npm run compile-umd && npm run build-gallery && npm run build-test && npm run test && npm run publish-lerna", + "publish": "lerna publish from-package -y", "tag": "run-s publish-version stamp stamp-main publish-update-lock publish-commit publish-tag publish-push", "purge-jsdelivr": "node ./utils/purge-jsdelivr.js", "serve-docs": "vitepress dev .", diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000000..66d6c8bf84 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,48 @@ +{ + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", + "release-type": "node", + "packages": { + ".": {}, + "packages/api": {}, + "packages/chart": {}, + "packages/codemirror": {}, + "packages/codemirror-shim": {}, + "packages/common": {}, + "packages/comms": {}, + "packages/composite": {}, + "packages/dataflow": {}, + "packages/ddl-shim": {}, + "packages/deck-shim": {}, + "packages/dgrid": {}, + "packages/dgrid-shim": {}, + "packages/dgrid2": {}, + "packages/eclwatch": {}, + "packages/esbuild-plugins": {}, + "packages/form": {}, + "packages/graph": {}, + "packages/html": {}, + "packages/layout": {}, + "packages/leaflet-shim": {}, + "packages/loader": {}, + "packages/map": {}, + "packages/map-deck": {}, + "packages/marshaller": {}, + "packages/observable-md": {}, + "packages/observable-shim": {}, + "packages/observablehq-compiler": {}, + "packages/other": {}, + "packages/phosphor": {}, + "packages/phosphor-shim": {}, + "packages/preact-shim": {}, + "packages/react": {}, + "packages/requirejs-shim": {}, + "packages/timeline": {}, + "packages/tree": {}, + "packages/util": {} + }, + "plugins": [ + { + "type": "node-workspace" + } + ] +} \ No newline at end of file