-
-
Notifications
You must be signed in to change notification settings - Fork 12
82 lines (72 loc) · 2.09 KB
/
cci.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: CCI Workflow
on:
push:
branches:
- main
jobs:
build-npm:
runs-on: ubuntu-latest
env:
NODE_OPTIONS: --max_old_space_size=8192
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm run build
- run: npm install
- name: build icons cci
working-directory: icons/cci
run: npm run build
- run: npm publish --access public
name: 📦 @icongo/cci publish to NPM
working-directory: icons/cci
continue-on-error: true
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- name: upload artifact
uses: actions/upload-artifact@v4
with:
name: cci-artifact
path: |
icons/cci/esm/**/*
icons/cci/lib/**/*
icons/cci/src/**/*
icons/cci/svg/**/*
# github-package:
# runs-on: ubuntu-latest
# env:
# NODE_OPTIONS: --max_old_space_size=8192
# needs: build-npm
# steps:
# - uses: actions/checkout@v3
# with:
# submodules: true
# - uses: actions/setup-node@v3
# with:
# node-version: 16
# registry-url: https://npm.pkg.github.com
# scope: '@jaywcjlove'
# - uses: actions/download-artifact@v3
# with:
# name: cci-artifact
# path: icons/cci/
# - name: Display structure of downloaded files
# run: ls -R
# working-directory: icons/cci/
# - name: "Modify @icongo/cci => @jaywcjlove/icongo-cci"
# uses: jaywcjlove/github-action-package@main
# continue-on-error: true
# with:
# path: icons/cci/package.json
# rename: '@jaywcjlove/icongo-cci'
# - run: npm publish
# working-directory: icons/cci
# name: 📦 @jaywcjlove/icongo-cci publish to NPM
# continue-on-error: true
# env:
# NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}