feat!: ABI Gen #13903
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 to @pr-<number> tag on npm | |
on: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
release-pr: | |
name: "Release PR to npm" | |
runs-on: ubuntu-latest | |
# comment out if:false to enable release PR to npm | |
if: false | |
permissions: write-all | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.event.pull_request.head.ref }} | |
- name: CI Setup | |
uses: ./.github/actions/ci-setup | |
- name: Build | |
run: pnpm build | |
- name: Publish to NPM | |
id: release | |
uses: ./.github/actions/pr-release | |
with: | |
npm-token: ${{ secrets.NPM_TOKEN }} | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
pr-number: ${{ github.event.pull_request.number }} | |
- uses: mshick/add-pr-comment@v2 | |
with: | |
message: | | |
This PR is published in NPM with version **${{ steps.release.outputs.published_version }}** | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |