-
Notifications
You must be signed in to change notification settings - Fork 31
35 lines (35 loc) · 1.24 KB
/
publish-alpha.yml
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
name: Publish Alpha
on:
workflow_dispatch:
inputs:
preid:
description: 'Preid used to publish package. Must be unique per branch.'
required: true
default: 'alpha'
ref:
description: 'Commit to deploy from. Defaults to branch used for workflow_dispatch action.'
required: false
default: ''
jobs:
publish-alpha:
runs-on: ubuntu-22.04
permissions:
contents: read
packages: write
id-token: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '0' # Need the history to properly select the canary version number
ref: ${{ github.event.inputs.ref }}
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run build
# Need the --no-verify-access access flag since we use an automation token. Otherwise publish step fails
# https://github.com/lerna/lerna/issues/2788
- run: ./node_modules/.bin/lerna publish --no-verify-access --canary --force-publish=\* --preid ${{ github.event.inputs.preid }} --dist-tag canary --yes
env:
NODE_AUTH_TOKEN: ${{ secrets.DEEPHAVENBOT_NPM_TOKEN }}