-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Open
Labels
Bugthing that needs fixingthing that needs fixingNeeds Triageneeds review for next stepsneeds review for next steps
Description
Is there an existing issue for this?
- I have searched the existing issues
This issue exists in the latest npm version
- I am using the latest npm
Current Behavior
name: "Publish Dev Preview on PR Merge"
on:
pull_request_target:
types: [closed]
paths:
- "packages/**"
permissions:
contents: read
pull-requests: write
issues: write
id-token: write
jobs:
npm-preview:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
registry-url: https://registry.npmjs.org/
cache: yarn
- name: Install and build
.....
- name: npm publish
run: npm publish --tag latest --provenance --access public
Expected Behavior
Steps To Reproduce
When I changed pull_request_target to push, it was successfully triggered.
Environment
use github action ci
Metadata
Metadata
Assignees
Labels
Bugthing that needs fixingthing that needs fixingNeeds Triageneeds review for next stepsneeds review for next steps