diff --git a/.github/workflows/npm-publish-prerelease.yml b/.github/workflows/npm-publish-prerelease.yml new file mode 100644 index 000000000..decdcd9b0 --- /dev/null +++ b/.github/workflows/npm-publish-prerelease.yml @@ -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/npm-publish-prerelease@v0.6.0 + with: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + PROVENANCE: 'true' + NPM_TAG: ${{ inputs.npm_tag }}