name: Release on: workflow_dispatch jobs: release: name: Release runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v2 with: fetch-depth: 0 - name: Setup Node.js uses: actions/setup-node@v2 with: node-version: '14' - name: Build run: | npm ci npm run build:dist - name: Test run: | npm run lint npm run test - name: Coverage uses: coverallsapp/github-action@v1.1.2 with: github-token: ${{ secrets.GITHUB_TOKEN }} - name: Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} run: npx semantic-release - name: Archive npm failure logs uses: actions/upload-artifact@v2 if: failure() with: name: npm-logs path: ~/.npm/_logs