revert(nyc): remove (#120) #187
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: Release | |
on: | |
workflow_run: | |
workflows: | |
- Mocha | |
types: | |
- completed | |
push: | |
branches: | |
- main | |
jobs: | |
release: | |
name: Version Increase | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
steps: | |
- name: Generate Token | |
id: generate_token | |
uses: tibdex/github-app-token@v2 | |
with: | |
app_id: ${{ secrets.RELEASE_UNBLOCKER_APP_ID }} | |
private_key: ${{ secrets.RELEASE_UNBLOCKER_APP_PRIVATE_KEY }} | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
token: ${{ steps.generate_token.outputs.token }} | |
- name: Set Up PNPM | |
uses: pnpm/action-setup@v3 | |
with: | |
version: 8 | |
- name: Set Up NodeJS | |
uses: actions/setup-node@v4 | |
with: | |
cache: pnpm | |
node-version: lts/* | |
- name: Install Dependencies | |
run: pnpm i | |
- name: Build | |
run: pnpm build | |
- name: Prettify Types | |
run: pnpm prettier index.d.ts --write | |
- name: Create Release | |
env: | |
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: pnpm release |