-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (41 loc) · 1.23 KB
/
publish-components-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
name: Publish @livetl/ui-components
on:
push:
branches:
- master
paths:
- javascript/ui-components/**
workflow_dispatch:
jobs:
publish-npm:
name: Publish @livetl/ui-components to NPM
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- uses: actions/setup-node@v2
with:
node-version: 14
registry-url: https://registry.npmjs.org/
- run: |
cd javascript/ui-components
cd submodules/LiveTL
yarn
npm run update:list
cd ../..
cp -r submodules/LiveTL/src build
# cp -r submodules/LiveTL/theme build/theme
cd build
rm -rf manifest.json empty.html __tests__ plugins
cd ..
mkdir build/plugins
mkdir build/meta
cp -r submodules/LiveTL/src/plugins/*.json build/plugins
cp submodules/LiveTL/postcss.config.js build/meta/postcss.config.js
cp submodules/LiveTL/tailwind.config.js build/meta/tailwind.config.js
npm i replace-in-file
node utils/package.js
npm publish build --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}