@@ -28,25 +28,40 @@ jobs:
28
28
29
29
publish-package :
30
30
# needs: build
31
+ # runs-on: ubuntu-latest
32
+ # steps:
33
+ # - uses: actions/checkout@v3
34
+ # # Setup .npmrc file to publish to npm
35
+ # - uses: actions/setup-node@v3
36
+ # with:
37
+ # node-version: 16
38
+ # registry-url: https://registry.npmjs.org/
39
+ # # - run: cat .npmrc
40
+ # - run: echo ${{ secrets }}
41
+ # - name: Install dependencies
42
+ # uses: borales/actions-yarn@v4.2.0
43
+ # with:
44
+ # cmd: install
45
+ # dir: client/packages/lowcoder-comps
46
+ # - name: Publish
47
+ # uses: borales/actions-yarn@v4.2.0
48
+ # with:
49
+ # cmd: build_publish
50
+ # dir: client/packages/lowcoder-comps
51
+ # env:
52
+ # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
31
53
runs-on : ubuntu-latest
32
54
steps :
33
- - uses : actions/checkout@v3
34
- # Setup .npmrc file to publish to npm
35
- - uses : actions/setup-node@v3
55
+ - name : Checkout
56
+ uses : actions/checkout@v2
57
+ - name : Setup Node
58
+ uses : actions/setup-node@v2
36
59
with :
37
- node-version : 16
38
- registry-url : https://registry.npmjs.org/
39
- # - run: cat .npmrc
40
- - run : echo ${{ secrets }}
41
- - name : Install dependencies
42
- uses : borales/actions-yarn@v4.2.0
43
- with :
44
- cmd : install
45
- dir : client/packages/lowcoder-comps
46
- - name : Publish
47
- uses : borales/actions-yarn@v4.2.0
48
- with :
49
- cmd : build_publish
50
- dir : client/packages/lowcoder-comps
60
+ node-version : ' 16'
61
+ registry-url : ' https://registry.npmjs.org'
62
+ - name : Install dependencies and build 🔧
63
+ run : npm ci && npm run build
64
+ - name : Publish package to NPM 📦
65
+ run : npm publish
51
66
env :
52
67
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
0 commit comments