Skip to content

feat: make profileUrl accessToken optional in SDK (#63) #126

feat: make profileUrl accessToken optional in SDK (#63)

feat: make profileUrl accessToken optional in SDK (#63) #126

name: main
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [^18, ^20]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: yarn install
- run: yarn lint
- run: yarn test
semantic-release:
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: npm
node-version: 20
# Install yarn
- run: npm install -g yarn
- name: Run semantic-release
if: github.repository == 'casdoor/casdoor-nodejs-sdk' && github.event_name == 'push'
run: |
yarn install
yarn semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}