Skip to content

Commit e53a372

Browse files
committed
WIP fix release
1 parent 0c3de66 commit e53a372

File tree

1 file changed

+42
-38
lines changed

1 file changed

+42
-38
lines changed

.github/workflows/release.yml

Lines changed: 42 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Release
22

33
on:
4+
workflow_dispatch:
45
pull_request_target:
56
branches:
67
- main
@@ -30,48 +31,51 @@ jobs:
3031
node-version: '24'
3132
registry-url: 'https://registry.npmjs.org'
3233

33-
- name: Configure Git author
34-
run: |
35-
git config --global user.name "Open Terms Archive Release Bot"
36-
git config --global user.email "[email protected]"
37-
38-
- name: Update changelog for release
39-
id: release-changelog
40-
uses: OpenTermsArchive/changelog-action/[email protected]
41-
42-
- name: Bump package version
43-
run: npm --no-git-tag-version version ${{ steps.release-changelog.outputs.version }}
44-
45-
- name: Commit CHANGELOG.md and package.json changes and create tag
46-
run: |
47-
git add "package.json"
48-
git add "package-lock.json"
49-
git add "CHANGELOG.md"
50-
git commit -m "Release v${{ steps.release-changelog.outputs.version }}"
51-
git tag v${{ steps.release-changelog.outputs.version }}
52-
53-
- name: Run status checks for release commit on temporary branch # Use temporary branch to enable pushing commits to this branch protected by required status checks
54-
uses: CasperWA/push-protected@v2
55-
with:
56-
token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}
57-
branch: main
58-
unprotect_reviews: true
59-
60-
- name: Push changes to repository
61-
run: git push origin && git push --tags
62-
63-
- name: Create GitHub release
64-
uses: softprops/action-gh-release@v1
65-
with:
66-
tag_name: v${{ steps.release-changelog.outputs.version }}
67-
body: ${{ steps.release-changelog.outputs.content }}
68-
token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}
34+
# - name: Configure Git author
35+
# run: |
36+
# git config --global user.name "Open Terms Archive Release Bot"
37+
# git config --global user.email "[email protected]"
38+
39+
# - name: Update changelog for release
40+
# id: release-changelog
41+
# uses: OpenTermsArchive/changelog-action/[email protected]
42+
43+
# - name: Bump package version
44+
# run: npm --no-git-tag-version version ${{ steps.release-changelog.outputs.version }}
45+
46+
# - name: Commit CHANGELOG.md and package.json changes and create tag
47+
# run: |
48+
# git add "package.json"
49+
# git add "package-lock.json"
50+
# git add "CHANGELOG.md"
51+
# git commit -m "Release v${{ steps.release-changelog.outputs.version }}"
52+
# git tag v${{ steps.release-changelog.outputs.version }}
53+
54+
# - name: Run status checks for release commit on temporary branch # Use temporary branch to enable pushing commits to this branch protected by required status checks
55+
# uses: CasperWA/push-protected@v2
56+
# with:
57+
# token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}
58+
# branch: main
59+
# unprotect_reviews: true
60+
61+
# - name: Push changes to repository
62+
# run: git push origin && git push --tags
63+
64+
# - name: Create GitHub release
65+
# uses: softprops/action-gh-release@v1
66+
# with:
67+
# tag_name: v${{ steps.release-changelog.outputs.version }}
68+
# body: ${{ steps.release-changelog.outputs.content }}
69+
# token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}
6970

7071
- name: Update npm
7172
run: npm install -g npm@latest
72-
73+
74+
- name: cat .npmrc
75+
run: cat .npmrc
76+
7377
- name: Publish to NPM public repository
74-
run: npm publish
78+
run: npm publish --dry-run
7579

7680
- name: Trigger documentation deploy
7781
uses: peter-evans/repository-dispatch@v2

0 commit comments

Comments
 (0)