Merge branch 'master' into release/2.8.0 #984
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set branch name | |
run: echo >>$GITHUB_ENV BRANCH_NAME=${GITHUB_REF#refs/heads/} | |
- name: Echo branch name | |
run: echo ${BRANCH_NAME} | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
registry-url: https://registry.npmjs.org/ | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 6 | |
- run: pnpm run setup | |
- run: pnpm run lint | |
- run: pnpm run test | |
- run: pnpm run coverage | |
env: | |
CI: true | |
- run: pnpm run publish:packages | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | |