-
Notifications
You must be signed in to change notification settings - Fork 8
36 lines (32 loc) · 1.08 KB
/
sdk-alpha-release.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
name: Release SDK Alpha
on:
push:
tags:
- 'releases/sdk/**-alpha*'
jobs:
create_sdk_alpha_release:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npx lerna run test --scope @meeco/sdk
env:
CI: true
# Tag all versions with `-alpha` and update all inter-dependant packages to use "alpha" as the version
- run: npm run alpha
- run: npx lerna run build --scope @meeco/sdk
- name: Publish NPM
run: |
npx lerna exec --scope @meeco/sdk -- npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
npx lerna exec --scope @meeco/sdk -- npm config set scope "@meeco"
npx lerna exec --scope @meeco/sdk -- npm publish --access public --tag alpha
env:
CI: true
NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}}