-
Notifications
You must be signed in to change notification settings - Fork 76
58 lines (55 loc) · 1.8 KB
/
prerelease.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: npmjs.com Pre-release
on:
push:
branches:
- main
jobs:
db-bigquery:
uses: './.github/workflows/db-bigquery.yaml'
secrets:
BIGQUERY_KEY: ${{ secrets.BIGQUERY_KEY }}
db-motherduck:
uses: './.github/workflows/db-motherduck.yaml'
secrets:
MOTHERDUCK_TOKEN_10: ${{ secrets.MOTHERDUCK_TOKEN_10 }}
db-postgres:
uses: './.github/workflows/db-postgres.yaml'
db-snowflake:
uses: './.github/workflows/db-snowflake.yaml'
secrets:
SNOWFLAKE_CONNECTION: ${{ secrets.SNOWFLAKE_CONNECTION }}
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-db-mysql 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 -w $package --access=public --tag next
done
env:
CI: true
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}