@@ -39,54 +39,37 @@ jobs:
39
39
name : Release
40
40
runs-on : ubuntu-latest
41
41
needs : changesetcheck
42
+ if : needs.changesetcheck.outputs.CHANGESETS == 'found'
42
43
permissions :
43
44
contents : write
44
45
id-token : write
45
46
steps :
46
- - name : Stop on no changesets
47
- if : needs.changesetcheck.outputs.CHANGESETS == 'notfound'
48
- run : |
49
- echo "No changesets found. Exiting the workflow."
50
- exit 0
51
-
52
47
- name : checkout code repository
53
48
uses : actions/checkout@v4
54
- if : needs.changesetcheck.outputs.CHANGESETS == 'found'
55
49
with :
56
50
fetch-depth : 0
57
51
- uses : pnpm/action-setup@v4
58
- if : needs.changesetcheck.outputs.CHANGESETS == 'found'
59
52
with :
60
53
version : 9
61
54
- uses : actions/setup-node@v4
62
- if : needs.changesetcheck.outputs.CHANGESETS == 'found'
63
55
with :
64
56
node-version : 22
65
57
cache : " pnpm"
66
58
- name : Install
67
- if : needs.changesetcheck.outputs.CHANGESETS == 'found'
68
59
run : pnpm install --no-frozen-lockfile
69
60
- name : Apply and commit changesets
70
- if : needs.changesetcheck.outputs.CHANGESETS == 'found'
71
61
run : |
72
62
echo "Changesets found. Starting release."
73
63
pnpm changeset version
74
64
git config --global user.name "Github Actions"
75
65
git config --global user.email "[email protected] "
76
66
git commit -a -m "chore: v-next version bump"
77
- git push
67
+ # git push
78
68
env :
79
69
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
80
70
- name : Setup npmrc
81
- if : needs.changesetcheck.outputs.CHANGESETS == 'found'
82
71
run : echo "//registry.npmjs.org/:_authToken=${{ secrets.VNEXT_NPM_TOKEN }}" > .npmrc
83
72
- name : Publish
84
- if : needs.changesetcheck.outputs.CHANGESETS == 'found'
85
73
run : pnpm publish --filter "./v-next/**" -r --no-git-checks --tag next --access public --dry-run
86
74
env :
87
75
NPM_CONFIG_PROVENANCE : true
88
- - name : push tags
89
- if : needs.changesetcheck.outputs.CHANGESETS == 'found'
90
- run : git push --follow-tags
91
- env :
92
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments