-
Notifications
You must be signed in to change notification settings - Fork 7
49 lines (47 loc) · 1.52 KB
/
publish.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
name: Publish
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
env:
CLOUDSMITH_API_TOKEN: ${{ secrets.CLOUDSMITH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_REGISTRY_ACCESS_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '16'
- name: Prepare Main
run: |
cd packages/fa-icon-chooser
npm install
npm run format.check
npm run build
npm run test
- name: Publish Main - npmjs
run: |
cd packages/fa-icon-chooser
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
npm publish --access public --registry=https://registry.npmjs.org
- name: Prepare React
run: |
cd packages/fa-icon-chooser-react
npm install
npm run build
- name: Publish React - npmjs
run: |
cd packages/fa-icon-chooser-react
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
npm publish --access public --registry=https://registry.npmjs.org
- name: Publish Main - Cloudsmith
run: |
cd packages/fa-icon-chooser
echo "//npm.fontawesome.com/:_authToken=${CLOUDSMITH_API_TOKEN}" > .npmrc
npm publish --registry https://npm.fontawesome.com
- name: Publish React - Cloudsmith
run: |
cd packages/fa-icon-chooser-react
echo "//npm.fontawesome.com/:_authToken=${CLOUDSMITH_API_TOKEN}" > .npmrc
npm publish --registry https://npm.fontawesome.com