forked from activepieces/activepieces
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (50 loc) · 2.06 KB
/
release-pieces.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
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
61
name: Release Pieces
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'packages/pieces/**'
- 'packages/shared/**'
jobs:
Release-Pieces:
if: github.repository == 'activepieces/activepieces'
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-
- name: Install dependencies
run: npm ci --ignore-scripts
- name: build packages
run: npx nx run-many --target=build
- name: copy project .npmrc to user level
run: cp .npmrc $HOME/.npmrc
- name: publish shared package
run: npx ts-node -r tsconfig-paths/register -P packages/engine/tsconfig.lib.json tools/scripts/utils/publish-nx-project.ts packages/shared
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: publish pieces-common package
run: npx ts-node -r tsconfig-paths/register -P packages/engine/tsconfig.lib.json tools/scripts/utils/publish-nx-project.ts packages/pieces/community/common
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: publish pieces-framework package
run: npx ts-node -r tsconfig-paths/register -P packages/engine/tsconfig.lib.json tools/scripts/utils/publish-nx-project.ts packages/pieces/community/framework
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: publish pieces packages
run: npx ts-node -r tsconfig-paths/register -P packages/engine/tsconfig.lib.json tools/scripts/pieces/publish-pieces-to-npm.ts
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: update pieces metadata
run: npx ts-node -r tsconfig-paths/register -P packages/engine/tsconfig.lib.json tools/scripts/pieces/update-pieces-metadata.ts packages/pieces/community/framework
env:
AP_CLOUD_API_KEY: ${{ secrets.AP_CLOUD_API_KEY }}