-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Will Scullin
committed
Mar 25, 2024
1 parent
9d9df6b
commit 448a0f1
Showing
6 changed files
with
51 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: BigQuery DB | ||
|
||
on: [pull_request] | ||
on: [pull_request, workflow_call] | ||
|
||
jobs: | ||
test-bigquery: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: MotherDuck DB | ||
|
||
on: [pull_request] | ||
on: [pull_request, workflow_call] | ||
|
||
jobs: | ||
test-motherduck: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: Postgres DB | ||
|
||
on: [pull_request] | ||
on: [pull_request, workflow_call] | ||
|
||
jobs: | ||
# Label of the container job | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: Snowflake DB | ||
|
||
on: [pull_request] | ||
on: [pull_request, workflow_call] | ||
|
||
jobs: | ||
test-snowflake: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: Core | ||
|
||
on: [pull_request] | ||
on: [pull_request, workflow_call] | ||
|
||
jobs: | ||
test-all: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: npmjs.com Pre-release | ||
|
||
on: [push] | ||
|
||
jobs: | ||
db-bigquery: | ||
uses: './.github/workflows/db-bigquery.yaml' | ||
db-motherduck: | ||
uses: './.github/workflows/db-motherduck.yaml' | ||
db-postgres: | ||
uses: './.github/workflows/db-postgres.yaml' | ||
db-snowflake: | ||
uses: './.github/workflows/db-snowflake.yaml' | ||
main: | ||
uses: './.github/workflows/main.yaml' | ||
|
||
npm-prerelease: | ||
needs: | ||
- db-bigquery | ||
- db-motherduck | ||
- db-postgres | ||
- db-snowflake | ||
- main | ||
runs-on: ubuntu-latest | ||
env: | ||
PACKAGES: 'packages/malloy-interfaces packages/malloy packages/malloy-db-bigquery packages/malloy-db-duckdb packages/malloy-db-postgres packages/malloy-db-snowflake packages/malloy-db-trino packages/malloy-render packages/malloy-malloy-sql test packages/malloy-syntax-highlight' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: 'true' | ||
- name: Use Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18.x | ||
- name: npm install, build, and publish | ||
run: | | ||
npm ci --loglevel error | ||
npm run build | ||
echo Publishing \$PACKAGES | ||
PRERELEASE=\$(date +%y%m%d%H%M%S) | ||
VERSION=\$(jq -r .version ./lerna.json)-dev\$PRERELEASE | ||
npx lerna version \$VERSION --yes --no-push --no-git-tag-version | ||
for package in \$PACKAGES; do | ||
echo Publishing \$package \$VERSION | ||
npm publish --dry-run -w \$package --access=public --tag next | ||
done |