2022-08-01 16:59:21 +00:00
|
|
|
name: Run Release Please
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- develop
|
|
|
|
|
|
|
|
jobs:
|
2022-08-01 17:59:04 +00:00
|
|
|
pre_check:
|
|
|
|
name: Precheck for skipping redundant jobs
|
2022-08-01 16:59:21 +00:00
|
|
|
runs-on: ubuntu-latest
|
2022-08-01 17:59:04 +00:00
|
|
|
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 }}
|
2022-08-01 16:59:21 +00:00
|
|
|
steps:
|
2022-08-01 17:59:04 +00:00
|
|
|
- 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:
|
2022-08-01 18:18:21 +00:00
|
|
|
- name: Release please (squiggle-lang)
|
2022-08-01 17:59:04 +00:00
|
|
|
uses: google-github-actions/release-please-action@v2
|
2022-08-01 18:40:01 +00:00
|
|
|
id: release
|
2022-08-01 17:59:04 +00:00
|
|
|
with:
|
|
|
|
token: ${{secrets.GITHUB_TOKEN}}
|
|
|
|
command: manifest-pr
|
|
|
|
path: packages/squiggle-lang
|
2022-08-01 18:18:21 +00:00
|
|
|
bump-patch-for-minor-pre-major: true
|
2022-08-01 18:40:01 +00:00
|
|
|
skip-github-release: true
|
2022-08-01 18:40:37 +00:00
|
|
|
# - 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 }}
|
2022-08-01 17:59:04 +00:00
|
|
|
relplz-components:
|
|
|
|
name: for components
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: pre_check
|
|
|
|
if: ${{ needs.pre_check.outputs.should_skip_components != 'true' }}
|
|
|
|
steps:
|
2022-08-01 18:18:21 +00:00
|
|
|
- name: Release please (components)
|
2022-08-01 17:59:04 +00:00
|
|
|
uses: google-github-actions/release-please-action@v2
|
|
|
|
with:
|
|
|
|
token: ${{secrets.GITHUB_TOKEN}}
|
|
|
|
command: manifest-pr
|
|
|
|
path: packages/components
|
2022-08-01 18:18:21 +00:00
|
|
|
bump-patch-for-minor-pre-major: true
|
2022-08-01 18:40:01 +00:00
|
|
|
skip-github-release: true
|
2022-08-01 18:40:37 +00:00
|
|
|
# - 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}}
|
2022-08-01 17:59:04 +00:00
|
|
|
relplz-website:
|
|
|
|
name: for website
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: pre_check
|
|
|
|
if: ${{ needs.pre_check.outputs.should_skip_website != 'true' }}
|
|
|
|
steps:
|
2022-08-01 18:18:21 +00:00
|
|
|
- name: Release please (website)
|
2022-08-01 17:59:04 +00:00
|
|
|
uses: google-github-actions/release-please-action@v2
|
|
|
|
with:
|
|
|
|
token: ${{secrets.GITHUB_TOKEN}}
|
|
|
|
command: manifest-pr
|
|
|
|
path: packages/website
|
2022-08-01 18:18:21 +00:00
|
|
|
bump-patch-for-minor-pre-major: true
|
2022-08-01 18:40:01 +00:00
|
|
|
skip-github-release: true
|
2022-08-01 17:59:04 +00:00
|
|
|
relplz-vscodeext:
|
|
|
|
name: for vscode-ext
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: pre_check
|
|
|
|
if: ${{ needs.pre_check.outputs.should_skip_vscodeext != 'true' }}
|
|
|
|
steps:
|
2022-08-01 18:18:21 +00:00
|
|
|
- name: Release please (vscode-ext)
|
2022-08-01 17:59:04 +00:00
|
|
|
uses: google-github-actions/release-please-action@v2
|
|
|
|
with:
|
|
|
|
token: ${{secrets.GITHUB_TOKEN}}
|
|
|
|
command: manifest-pr
|
|
|
|
path: packages/vscode-ext
|
2022-08-01 18:18:21 +00:00
|
|
|
bump-patch-for-minor-pre-major: true
|
2022-08-01 18:40:01 +00:00
|
|
|
skip-github-release: true
|
2022-08-01 17:59:04 +00:00
|
|
|
relplz-cl:
|
|
|
|
name: for cli
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: pre_check
|
|
|
|
if: ${{ needs.pre_check.outputs.should_skip_cli != 'true' }}
|
|
|
|
steps:
|
2022-08-01 18:18:21 +00:00
|
|
|
- name: Release please (cli)
|
2022-08-01 17:59:04 +00:00
|
|
|
uses: google-github-actions/release-please-action@v2
|
2022-08-01 16:59:21 +00:00
|
|
|
with:
|
|
|
|
token: ${{secrets.GITHUB_TOKEN}}
|
2022-08-01 17:59:04 +00:00
|
|
|
command: manifest-pr
|
|
|
|
path: packages/cli
|
2022-08-01 18:18:21 +00:00
|
|
|
bump-patch-for-minor-pre-major: true
|
2022-08-01 18:40:01 +00:00
|
|
|
skip-github-release: true
|