Skip to content

Commit

Permalink
Merge pull request #1846 from Automattic/add/prerelease-workflow
Browse files Browse the repository at this point in the history
ci: add publish prerelease workflow
  • Loading branch information
sjinks authored May 24, 2024
2 parents ae3d2e0 + 75a8cdb commit 4daa36f
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/npm-publish-prerelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish prerelease to npm

on:
workflow_dispatch:
inputs:
npm_tag:
description: 'NPM tag for prerelease'
default: 'next'

jobs:
publish:
name: Publish prerelease
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
pull-requests: write
steps:
- uses: Automattic/vip-actions/[email protected]
with:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
PROVENANCE: 'true'
NPM_TAG: ${{ inputs.npm_tag }}

0 comments on commit 4daa36f

Please sign in to comment.