Skip to content

Extract execute_from_outside and upgrade #436

Extract execute_from_outside and upgrade

Extract execute_from_outside and upgrade #436

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@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20.x"
registry-url: "https://registry.npmjs.org/"
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9.7.0
- name: Install dependencies
run: pnpm install
- name: Publish to npm
run: pnpm release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}