Skip to content

Commit 428dce1

Browse files
test: run publish directly in dev, and associate that with the workflow
1 parent 8b91fd5 commit 428dce1

File tree

1 file changed

+28
-10
lines changed

1 file changed

+28
-10
lines changed

.github/workflows/release-dev.yml

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,31 @@ jobs:
3333

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

0 commit comments

Comments
 (0)