mirror of
https://github.com/strapi/strapi.git
synced 2026-01-09 05:41:03 +00:00
30 lines
771 B
YAML
30 lines
771 B
YAML
name: 'Publish Prerelease'
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
dist-tag:
|
|
description: 'The tag you want to publish to NPM'
|
|
default: 'experimental'
|
|
|
|
permissions:
|
|
contents: read # to fetch code (actions/checkout)
|
|
|
|
jobs:
|
|
publish:
|
|
name: 'Publish'
|
|
runs-on: ubuntu-latest
|
|
if: github.repository == 'strapi/strapi'
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Setup npmrc
|
|
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
- run: yarn
|
|
- run: ./scripts/pre-publish.sh --yes
|
|
env:
|
|
VERSION: '0.0.0-experimental.${{ github.sha }}'
|
|
DIST_TAG: ${{ github.event.inputs.dist-tag }}
|