-
Notifications
You must be signed in to change notification settings - Fork 9
39 lines (35 loc) · 1.38 KB
/
file-storage-create-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
37
38
39
name: File Storage Create Release
on:
push:
tags:
- 'releases/file-storage/**'
- '!releases/file-storage/**-beta*'
jobs:
create_file_storage_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: npm test
env:
CI: true
# It is currently a dependency
- run: npx lerna run build --scope '@meeco/sdk'
# Build common first as the others depend on it
- run: npx lerna run build --scope '@meeco/file-storage-common'
- run: npx lerna run build --scope '@meeco/{file-storage-browser,file-storage-node}'
- name: Publish NPM
run: |
npx lerna exec --scope '@meeco/{file-storage-common,file-storage-browser,file-storage-node}' -- npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
npx lerna exec --scope '@meeco/{file-storage-common,file-storage-browser,file-storage-node}' -- npm config set scope "@meeco"
npx lerna exec --scope '@meeco/{file-storage-common,file-storage-browser,file-storage-node}' -- npm publish --access public
env:
CI: true
NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}}