Skip to content

CI

CI #8

Workflow file for this run

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