Skip to content

Commit 068b7f5

Browse files
committed
ci: replace reusable workflow with explicit release steps
1 parent 5d24234 commit 068b7f5

File tree

4 files changed

+1585
-4
lines changed

4 files changed

+1585
-4
lines changed

.github/workflows/release.yml

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,44 @@ on:
77

88
jobs:
99
release:
10-
uses: sxzz/workflows/.github/workflows/release.yml@v1
11-
with:
12-
publish: true
1310
permissions:
14-
contents: write
1511
id-token: write
12+
contents: write
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Install pnpm
20+
uses: pnpm/action-setup@v4
21+
22+
- name: Set node
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: lts/*
26+
cache: pnpm
27+
registry-url: 'https://registry.npmjs.org'
28+
29+
- name: Install
30+
run: pnpm install
31+
32+
# Ensure npm 11.5.1 or later is installed
33+
- name: Update NPM
34+
run: npm install -g npm@latest
35+
36+
- name: Determine NPM tag
37+
run: |
38+
if [[ "${{ github.ref_name }}" == *"beta"* ]] || [[ "${{ github.ref_name }}" == *"alpha"* ]]; then
39+
echo "NPM_TAG=beta" >> $GITHUB_ENV
40+
else
41+
echo "NPM_TAG=latest" >> $GITHUB_ENV
42+
fi
43+
44+
- name: Publish
45+
run: pnpm -r publish --tag ${{ env.NPM_TAG }} --access public --no-git-checks
46+
47+
- name: GitHub release
48+
run: pnpm dlx conventional-github-releaser -p vuetify
49+
env:
50+
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
},
2929
"devDependencies": {
3030
"bumpp": "catalog:",
31+
"conventional-github-releaser": "catalog:",
3132
"eslint": "catalog:",
3233
"eslint-config-vuetify": "catalog:"
3334
}

0 commit comments

Comments
 (0)