Skip to content

Commit f2f7894

Browse files
committed
[TO REMOVE] publish missing version on npm
1 parent e97d763 commit f2f7894

File tree

1 file changed

+67
-70
lines changed

1 file changed

+67
-70
lines changed

.github/workflows/release.yml

Lines changed: 67 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
name: Release
22

33
on:
4-
pull_request_target:
5-
branches:
6-
- main
7-
types: [ closed ]
4+
push:
85

96
permissions:
107
id-token: write # Required for OIDC. See https://docs.npmjs.com/trusted-publishers#step-2-configure-your-cicd-workflow
@@ -17,7 +14,7 @@ jobs:
1714
uses: "OpenTermsArchive/engine/.github/workflows/test.yml@main"
1815
release:
1916
needs: [ changelog, test ]
20-
if: github.event.pull_request.merged == true && needs.changelog.outputs.release-type != 'no-release'
17+
# if: github.event.pull_request.merged == true && needs.changelog.outputs.release-type != 'no-release'
2118
runs-on: ubuntu-latest
2219
steps:
2320
- name: Checkout
@@ -30,75 +27,75 @@ jobs:
3027
node-version: '24'
3128
registry-url: 'https://registry.npmjs.org'
3229

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
30+
# - name: Configure Git author
31+
# run: |
32+
# git config --global user.name "Open Terms Archive Release Bot"
33+
# git config --global user.email "[email protected]"
34+
35+
# - name: Update changelog for release
36+
# id: release-changelog
37+
# uses: OpenTermsArchive/changelog-action/[email protected]
38+
39+
# - name: Bump package version
40+
# run: npm --no-git-tag-version version ${{ steps.release-changelog.outputs.version }}
41+
42+
# - name: Commit CHANGELOG.md and package.json changes and create tag
43+
# run: |
44+
# git add "package.json"
45+
# git add "package-lock.json"
46+
# git add "CHANGELOG.md"
47+
# git commit -m "Release v${{ steps.release-changelog.outputs.version }}"
48+
# git tag v${{ steps.release-changelog.outputs.version }}
49+
50+
# - 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
51+
# uses: CasperWA/push-protected@v2
52+
# with:
53+
# token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}
54+
# branch: main
55+
# unprotect_reviews: true
5956

6057
- name: Update npm
6158
run: npm install -g npm@latest
6259

6360
- name: Publish to NPM public repository
6461
run: npm publish --provenance
6562

66-
- name: Push changes to repository
67-
run: git push origin && git push --tags
68-
69-
- name: Create GitHub release
70-
uses: softprops/action-gh-release@v1
71-
with:
72-
tag_name: v${{ steps.release-changelog.outputs.version }}
73-
body: ${{ steps.release-changelog.outputs.content }}
74-
token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}
75-
76-
- name: Trigger documentation deploy
77-
uses: peter-evans/repository-dispatch@v2
78-
with:
79-
token: ${{ secrets.TRIGGER_DOCS_DEPLOY_TOKEN }}
80-
event-type: engine-release
81-
repository: OpenTermsArchive/docs
82-
client-payload: '{"version": "v${{ steps.release-changelog.outputs.version }}"}'
83-
84-
clean_changelog:
85-
if: github.event.pull_request.merged == true && needs.changelog.outputs.release-type == 'no-release'
86-
needs: [ changelog ]
87-
runs-on: ubuntu-latest
88-
steps:
89-
- uses: actions/checkout@v4
90-
with:
91-
token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}
92-
93-
- name: Configure Git author
94-
run: |
95-
git config --global user.name "Open Terms Archive Release Bot"
96-
git config --global user.email "[email protected]"
97-
98-
- name: Update changelog for release
99-
uses: OpenTermsArchive/changelog-action/[email protected]
100-
101-
- name: Save changelog
102-
run: |
103-
git commit -m "Clean changelog" CHANGELOG.md
104-
git push origin
63+
# - name: Push changes to repository
64+
# run: git push origin && git push --tags
65+
66+
# - name: Create GitHub release
67+
# uses: softprops/action-gh-release@v1
68+
# with:
69+
# tag_name: v${{ steps.release-changelog.outputs.version }}
70+
# body: ${{ steps.release-changelog.outputs.content }}
71+
# token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}
72+
73+
# - name: Trigger documentation deploy
74+
# uses: peter-evans/repository-dispatch@v2
75+
# with:
76+
# token: ${{ secrets.TRIGGER_DOCS_DEPLOY_TOKEN }}
77+
# event-type: engine-release
78+
# repository: OpenTermsArchive/docs
79+
# client-payload: '{"version": "v${{ steps.release-changelog.outputs.version }}"}'
80+
81+
# clean_changelog:
82+
# if: github.event.pull_request.merged == true && needs.changelog.outputs.release-type == 'no-release'
83+
# needs: [ changelog ]
84+
# runs-on: ubuntu-latest
85+
# steps:
86+
# - uses: actions/checkout@v4
87+
# with:
88+
# token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}
89+
90+
# - name: Configure Git author
91+
# run: |
92+
# git config --global user.name "Open Terms Archive Release Bot"
93+
# git config --global user.email "[email protected]"
94+
95+
# - name: Update changelog for release
96+
# uses: OpenTermsArchive/changelog-action/[email protected]
97+
98+
# - name: Save changelog
99+
# run: |
100+
# git commit -m "Clean changelog" CHANGELOG.md
101+
# git push origin

0 commit comments

Comments
 (0)