-
Notifications
You must be signed in to change notification settings - Fork 4
60 lines (51 loc) · 1.52 KB
/
release.beta.yml
File metadata and controls
60 lines (51 loc) · 1.52 KB
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
59
60
name: Release (Beta)
on:
pull_request:
types:
- closed
branches:
- main
jobs:
release_beta:
runs-on: ubuntu-latest-16-cores
if: github.event.pull_request.merged == true && !startsWith(github.event.pull_request.head.ref, 'release-')
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: jetli/wasm-pack-action@v0.4.0
with:
version: "latest"
- uses: actions/setup-node@v3
with:
node-version: 18.x
cache: 'yarn'
cache-dependency-path: ./js/yarn.lock
- name: "NPM Identity"
working-directory: ./js
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
- name: Install packages
working-directory: ./js
run: yarn
- name: Build packages
working-directory: ./js
run: yarn lerna run build
- name: "Publish"
working-directory: ./js
run: yarn lerna publish --canary --preid beta --dist-tag beta --tag-version-prefix beta --yes
dispatch:
needs: release_beta
strategy:
matrix:
repo: ['polybase/polybase-ts', 'polybase/polybase-rust', 'polybase/explorer']
runs-on: ubuntu-latest
steps:
- name: Trigger repo updates
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.ADMIN_TOKEN }}
repository: ${{ matrix.repo }}
event-type: update-polylang-packages-beta