Skip to content

Commit 86ece8e

Browse files
test workflow
1 parent b4c0c16 commit 86ece8e

File tree

1 file changed

+32
-17
lines changed

1 file changed

+32
-17
lines changed

.github/workflows/publish-comps.yml

Lines changed: 32 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -28,25 +28,40 @@ jobs:
2828

2929
publish-package:
3030
# 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 }}
3153
runs-on: ubuntu-latest
3254
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
3659
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
5166
env:
5267
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)