Skip to content

Commit

Permalink
Merge pull request #4255 from GordonSmith/release-please/bootstrap/de…
Browse files Browse the repository at this point in the history
…fault

chore: bootstrap releases for path: .
  • Loading branch information
GordonSmith committed Oct 23, 2024
2 parents 1af6b8a + 3e913a6 commit c278990
Show file tree
Hide file tree
Showing 5 changed files with 209 additions and 0 deletions.
116 changes: 116 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.eclcc
.env
.nx
node_modules
dist/
Expand Down Expand Up @@ -36,3 +37,4 @@ tmp*.json
/demos/rwc2019
demos/h3/data
.nx/cache
/packages/markdown-it-plugins/docs/obt/data
38 changes: 38 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -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"
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 .",
Expand Down
52 changes: 52 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"release-type": "node",
"include-component-in-tag": true,
"include-v-in-tag": true,
"tag-separator": "@",
"separate-pull-requests": true,
"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"
}
]
}

0 comments on commit c278990

Please sign in to comment.