From c71d98850ce944c92e21490cd2e7d578dfdd4f6d Mon Sep 17 00:00:00 2001 From: Maxim Karpov Date: Mon, 7 Oct 2024 14:12:33 +0300 Subject: [PATCH] chore: add manual prerelease action (#531) --- .github/workflows/prerelease.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/prerelease.yaml diff --git a/.github/workflows/prerelease.yaml b/.github/workflows/prerelease.yaml new file mode 100644 index 00000000..5cfd279c --- /dev/null +++ b/.github/workflows/prerelease.yaml @@ -0,0 +1,21 @@ +on: workflow_dispatch + +name: prerelease + +jobs: + prerelease: + runs-on: ubuntu-latest + if: github.ref_protected != true + steps: + - uses: actions/checkout@v4 + - name: Setup Node 18 + uses: actions/setup-node@v3 + with: + node-version: 18 + registry-url: 'https://registry.npmjs.org' + cache: 'npm' + - run: npm ci + - run: npm version --no-git-tag-version 0.0.0-rc-$(git branch --show-current)-$(date "+%Y%m%d%H%M") + - run: npm publish --no-tag + env: + NODE_AUTH_TOKEN: ${{secrets.ROBOT_DATAUI_NPM_TOKEN}}