forked from elsa-workflows/elsa-core
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 1.14 KB
/
publish-latest-designer-npm.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
name: Build elsa designer
on:
workflow_dispatch:
#push:
# branches:
# - master
release:
types: [published]
env:
NODE_OPTIONS: --max-old-space-size=4096
jobs:
push_to_npm:
name: Push NPM package to NPM
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./src/designer/elsa-workflows-studio
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 18.12.1
- run: npm install
- run: npm version ${{ github.ref_name }}
- run: npm run build
# - name: NPM Publish Preview
# if: github.event_name == 'push'
# uses: JS-DevTools/npm-publish@v1
# with:
# package: ./src/designer/elsa-workflows-studio/package.json
# token: ${{ secrets.NPM_TOKEN }}
# tag: preview
- name: NPM Publish Release
if: github.event_name == 'release'
uses: JS-DevTools/npm-publish@v1
with:
package: ./src/designer/elsa-workflows-studio/package.json
token: ${{ secrets.NPM_TOKEN }}