Skip to content

Reject context when user closes modal #97

Reject context when user closes modal

Reject context when user closes modal #97

Workflow file for this run

name: release
on:
workflow_dispatch:
pull_request:
types: [closed]
branches:
- main
jobs:
publish:
if:
(github.event.pull_request.merged == true &&
github.event.pull_request.head.ref == 'prepare-release') ||
github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "20.x"
registry-url: "https://registry.npmjs.org/"
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: "8"
- name: Install dependencies
run: pnpm install
- name: Publish to npm
run: pnpm release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}