diff --git a/.github/dependabot.yml b/.github/dependabot.yml index e5293308..443439c4 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -12,4 +12,3 @@ updates: commit-message: prefix: "⬆️" open-pull-requests-limit: 100 - diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 00000000..299aad22 --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,140 @@ +name: Run Release Please + +on: + push: + branches: + - develop + +jobs: + pre_check: + name: Precheck for skipping redundant jobs + runs-on: ubuntu-latest + outputs: + should_skip_lang: ${{ steps.skip_lang_check.outputs.should_skip }} + should_skip_components: ${{ steps.skip_components_check.outputs.should_skip }} + should_skip_website: ${{ steps.skip_website_check.outputs.should_skip }} + should_skip_vscodeext: ${{ steps.skip_vscodeext_check.outputs.should_skip }} + should_skip_cli: ${{ steps.skip_cli_check.outputs.should_skip }} + steps: + - id: skip_lang_check + name: Check if the changes are about squiggle-lang src files + uses: fkirc/skip-duplicate-actions@v3.4.1 + with: + paths: '["packages/squiggle-lang/**"]' + - id: skip_components_check + name: Check if the changes are about components src files + uses: fkirc/skip-duplicate-actions@v3.4.1 + with: + paths: '["packages/components/**"]' + - id: skip_website_check + name: Check if the changes are about website src files + uses: fkirc/skip-duplicate-actions@v3.4.1 + with: + paths: '["packages/website/**"]' + - id: skip_vscodeext_check + name: Check if the changes are about vscode extension src files + uses: fkirc/skip-duplicate-actions@v3.4.1 + with: + paths: '["packages/vscode-ext/**"]' + - id: skip_cli_check + name: Check if the changes are about cli src files + uses: fkirc/skip-duplicate-actions@v3.4.1 + with: + paths: '["packages/cli/**"]' + + relplz-lang: + name: for squiggle-lang + runs-on: ubuntu-latest + needs: pre_check + if: ${{ needs.pre_check.outputs.should_skip_lang != 'true' }} + steps: + - name: Release please (squiggle-lang) + uses: google-github-actions/release-please-action@v2 + id: release + with: + token: ${{secrets.GITHUB_TOKEN}} + command: manifest-pr + path: packages/squiggle-lang + bump-patch-for-minor-pre-major: true + skip-github-release: true + # - name: Publish: Checkout source + # uses: actions/checkout@v2 + # # these if statements ensure that a publication only occurs when + # # a new release is created: + # if: ${{ steps.release.outputs.release_created }} + # - name: Publish: Install dependencies + # run: yarn + # if: ${{ steps.release.outputs.release_created }} + # - name: Publish + # run: cd packages/squiggle-lang && yarn publish + # env: + # NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + # if: ${{ steps.release.outputs.release_created }} + relplz-components: + name: for components + runs-on: ubuntu-latest + needs: pre_check + if: ${{ needs.pre_check.outputs.should_skip_components != 'true' }} + steps: + - name: Release please (components) + uses: google-github-actions/release-please-action@v2 + with: + token: ${{secrets.GITHUB_TOKEN}} + command: manifest-pr + path: packages/components + bump-patch-for-minor-pre-major: true + skip-github-release: true + # - name: Publish: Checkout source + # uses: actions/checkout@v2 + # # these if statements ensure that a publication only occurs when + # # a new release is created: + # if: ${{ steps.release.outputs.release_created }} + # - name: Publish: Install dependencies + # run: yarn + # if: ${{ steps.release.outputs.release_created }} + # - name: Publish + # run: cd packages/components && yarn publish + # env: + # NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + relplz-website: + name: for website + runs-on: ubuntu-latest + needs: pre_check + if: ${{ needs.pre_check.outputs.should_skip_website != 'true' }} + steps: + - name: Release please (website) + uses: google-github-actions/release-please-action@v2 + with: + token: ${{secrets.GITHUB_TOKEN}} + command: manifest-pr + path: packages/website + bump-patch-for-minor-pre-major: true + skip-github-release: true + relplz-vscodeext: + name: for vscode-ext + runs-on: ubuntu-latest + needs: pre_check + if: ${{ needs.pre_check.outputs.should_skip_vscodeext != 'true' }} + steps: + - name: Release please (vscode-ext) + uses: google-github-actions/release-please-action@v2 + with: + token: ${{secrets.GITHUB_TOKEN}} + command: manifest-pr + path: packages/vscode-ext + bump-patch-for-minor-pre-major: true + skip-github-release: true + relplz-cl: + name: for cli + runs-on: ubuntu-latest + needs: pre_check + if: ${{ needs.pre_check.outputs.should_skip_cli != 'true' }} + steps: + - name: Release please (cli) + uses: google-github-actions/release-please-action@v2 + with: + token: ${{secrets.GITHUB_TOKEN}} + command: manifest-pr + path: packages/cli + bump-patch-for-minor-pre-major: true + skip-github-release: true diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 00000000..60a035fb --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,7 @@ +{ + "packages/cli": "0.0.3", + "packages/components": "0.2.24", + "packages/squiggle-lang": "0.2.11", + "packages/vscode-ext": "0.3.1", + "packages/website": "0.2.1" +} diff --git a/packages/vscode-ext/package.json b/packages/vscode-ext/package.json index 0defda40..fca0c43d 100644 --- a/packages/vscode-ext/package.json +++ b/packages/vscode-ext/package.json @@ -129,8 +129,8 @@ "@types/glob": "^7.2.0", "@types/node": "18.x", "@types/vscode": "^1.69.0", - "@typescript-eslint/eslint-plugin": "^5.31.0", - "@typescript-eslint/parser": "^5.31.0", + "@typescript-eslint/eslint-plugin": "^5.32.0", + "@typescript-eslint/parser": "^5.32.0", "eslint": "^8.21.0", "glob": "^8.0.3", "js-yaml": "^4.1.0", diff --git a/packages/website/CHANGELOG.md b/packages/website/CHANGELOG.md new file mode 100644 index 00000000..d571a1d3 --- /dev/null +++ b/packages/website/CHANGELOG.md @@ -0,0 +1,8 @@ +# Changelog + +### [0.2.1](https://www.github.com/quantified-uncertainty/squiggle/compare/squiggle-website-v0.2.0...squiggle-website-v0.2.1) (2022-08-01) + +### Bug Fixes + +- added NextJS starter to `Integrations.md` ([7ea9522](https://www.github.com/quantified-uncertainty/squiggle/commit/7ea95225b2fa3bd638b75a23bfd2d55ea1b7d595)) +- so the PR it opens is proper this time ([fd411c4](https://www.github.com/quantified-uncertainty/squiggle/commit/fd411c49b9013ba215ed305ae6ed66850592433b)) diff --git a/packages/website/docs/Integrations.md b/packages/website/docs/Integrations.md index c2aa16e7..d10a7e9a 100644 --- a/packages/website/docs/Integrations.md +++ b/packages/website/docs/Integrations.md @@ -32,3 +32,7 @@ This extention allows you to run and visualize Squiggle code. ## [Observable Library](https://observablehq.com/@hazelfire/squiggle) An exportable [Observable Notebook](https://observablehq.com/@hazelfire/squiggle) of the key components that you can directly import and use in Observable notebooks. + +## [NextJS starter](https://github.com/quantified-uncertainty/next-app-with-squiggle) + +A template for presenting estimates on a nextjs site. diff --git a/packages/website/docs/Internal/ImportIntoMdx.mdx b/packages/website/docs/Internal/ImportIntoMdx.mdx index 683f9311..74a2837e 100644 --- a/packages/website/docs/Internal/ImportIntoMdx.mdx +++ b/packages/website/docs/Internal/ImportIntoMdx.mdx @@ -29,6 +29,8 @@ import { SquiggleEditorWithImportedBindings } from "../../src/components/Squiggl />; ``` +Notice, you need to wrap the export of `@quri/squiggle-components` in custom code for dynamicism, please view `packages/website/src/components/` in github for details. + Which would then look exactly like