-
Notifications
You must be signed in to change notification settings - Fork 3
44 lines (35 loc) · 1.02 KB
/
ci.yml
File metadata and controls
44 lines (35 loc) · 1.02 KB
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
name: CI
on:
workflow_dispatch:
jobs:
readyGo:
runs-on: ubuntu-latest
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
PUBLISH_OPTS: ${{ github.ref_name == 'main' && '--verbose' || '--verbose --tag=alpha' }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16.13.1
registry-url: https://registry.npmjs.org/
# - name: update
# run: |
# git clone https://github.com/Authing/authing-sdk-factory.git --branch temp/node --depth 1 temp
# cp -R temp/* ./
# rm -rf temp
- name: build
run: |
yarn
yarn build
# - name: test
# run: yarn test
- name: publish
run: |
npm config set //registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN
npm publish $PUBLISH_OPTS --access public
# - name: test
# run: |
# git add -A .
# git commit -a -m 'Auto Update'
# git push origin main