Skip to content

Commit cecffef

Browse files
test: single yml file for dev release
1 parent d52ff86 commit cecffef

File tree

1 file changed

+28
-6
lines changed

1 file changed

+28
-6
lines changed

.github/workflows/release-dev.yml

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,31 @@ jobs:
3131

3232
release-npm-dev:
3333
#needs: ['verify-packages', 'lint-test']
34-
uses: ./.github/workflows/reusable_release-npm.yml
35-
with:
36-
create-dev-release: true
37-
create-rc-release: false
38-
secrets:
39-
CAP_GH_RELEASE_TOKEN: ${{ secrets.CAP_GH_RELEASE_TOKEN }}
34+
runs-on: ubuntu-latest
35+
timeout-minutes: 30
36+
steps:
37+
- uses: actions/checkout@v3
38+
with:
39+
fetch-depth: 0
40+
token: ${{ secrets.CAP_GH_RELEASE_TOKEN }}
41+
42+
- name: 'Setup Tools'
43+
uses: ./.github/actions/setup-tools
44+
45+
- name: 'Check Current Release Type'
46+
shell: bash
47+
run: |
48+
RELEASE_TYPE="$([[ "$(git describe --abbrev=0 --tags)" =~ ^[0-9]{1,}[\.][0-9]{1,}[\.][0-9]{1,}[-]((beta)|(rc)|(alpha))[\.][0-9]{1,}$ ]] && echo "prerelease" || echo "release")"
49+
echo "releasetype=$RELEASE_TYPE" >> $GITHUB_ENV
50+
51+
- name: "Git Config"
52+
run: |
53+
git config user.name "Github Workflow (on behalf of ${{ github.actor }})"
54+
git config user.email "users.noreply.github.com"
55+
56+
- name: 'Dev Release'
57+
shell: bash
58+
env:
59+
GH_TOKEN: ${{ secrets.CAP_GH_RELEASE_TOKEN }}
60+
run: |
61+
pnpm ci:publish:devs

0 commit comments

Comments
 (0)