Skip to content

Commit 22d0129

Browse files
authored
added prerelease workflow (#352)
1 parent 41fa7bd commit 22d0129

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/prerelease.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
on: workflow_dispatch
2+
3+
name: prerelease
4+
5+
jobs:
6+
prerelease:
7+
runs-on: ubuntu-latest
8+
if: github.ref_protected != true
9+
steps:
10+
- uses: actions/checkout@v4
11+
- name: Setup Node 18
12+
uses: actions/setup-node@v3
13+
with:
14+
node-version: 18
15+
registry-url: 'https://registry.npmjs.org'
16+
cache: 'npm'
17+
- run: npm ci
18+
- run: npm version --no-git-tag-version 0.0.0-rc-$(git branch --show-current)-$(date "+%Y%m%d%H%M")
19+
- run: npm publish --no-tag
20+
env:
21+
NODE_AUTH_TOKEN: ${{secrets.ROBOT_DATAUI_NPM_TOKEN}}

0 commit comments

Comments
 (0)