| name: Node.js CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '14.x' | |
| cache: 'yarn' | |
| - run: yarn --frozen-lockfile | |
| - run: yarn build:lib || yarn build:lib | |
| #- run: yarn run lint | |
| #- run: yarn run test | |
| - name: semantic release | |
| env: | |
| GH_TOKEN_DOCS: ${{ secrets.GH_TOKEN_DOCS }} | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| run: 'echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc && yarn run semantic-release' | |