name: Release on: push: branches: - master jobs: release: name: release runs-on: ubuntu-latest strategy: matrix: node-version: [12.18.4] steps: - name: Checkout uses: actions/checkout@v2 - name: Install dependencies run: npm install - name: Build run: npm run build - name: Release env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} run: npx semantic-release