Skip to content

chore(yarn.lock): update yarn.lock file by Node.js 18 #71

chore(yarn.lock): update yarn.lock file by Node.js 18

chore(yarn.lock): update yarn.lock file by Node.js 18 #71

name: main
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [^14, ^16, ^18]
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
# TODO: no test cases
# - run: yarn coverage
# - name: Coveralls
# uses: coverallsapp/github-action@master
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# flag-name: run-${{ matrix.node-version }}
# parallel: true
semantic-release:
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: npm
node-version: 18
# 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 }}
# TODO: no test cases
# finish:
# needs: test
# runs-on: ubuntu-latest
# steps:
# - name: Coveralls Finished
# uses: coverallsapp/github-action@master
# with:
# github-token: ${{ secrets.github_token }}
# parallel-finished: true