Skip to content

Commit 93fe0aa

Browse files
committed
[to remove] publish missing version
1 parent c731ab2 commit 93fe0aa

1 file changed

Lines changed: 51 additions & 45 deletions

File tree

.github/workflows/release.yml

Lines changed: 51 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,20 @@
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
118
contents: read
129

1310
jobs:
14-
changelog:
15-
uses: "./.github/workflows/changelog.yml"
16-
test:
17-
uses: "OpenTermsArchive/engine/.github/workflows/test.yml@main"
11+
# changelog:
12+
# uses: "./.github/workflows/changelog.yml"
13+
# test:
14+
# uses: "OpenTermsArchive/engine/.github/workflows/test.yml@main"
1815
release:
19-
needs: [ changelog, test ]
20-
if: github.event.pull_request.merged == true && needs.changelog.outputs.release-type != 'no-release'
16+
# needs: [ changelog, test ]
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
@@ -41,15 +38,15 @@ jobs:
4138
uses: OpenTermsArchive/changelog-action/release@v0.2.0
4239

4340
- name: Bump package version
44-
run: npm --no-git-tag-version version ${{ steps.release-changelog.outputs.version }}
41+
run: npm --no-git-tag-version version 10.2.0
4542

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 }}
43+
# - name: Commit CHANGELOG.md and package.json changes and create tag
44+
# run: |
45+
# git add "package.json"
46+
# git add "package-lock.json"
47+
# git add "CHANGELOG.md"
48+
# git commit -m "Release v${{ steps.release-changelog.outputs.version }}"
49+
# git tag v${{ steps.release-changelog.outputs.version }}
5350

5451
# Publish to NPM first, before pushing to repository
5552
# If this fails, no changes are pushed to the repository, ensuring consistency
@@ -58,13 +55,22 @@ jobs:
5855

5956
# Only push to repository after successful NPM publish
6057
- name: Push changes to repository
61-
run: git push origin main && git push --tags
58+
run: git push --tags
6259

6360
- name: Create GitHub release
6461
uses: softprops/action-gh-release@v2
6562
with:
66-
tag_name: v${{ steps.release-changelog.outputs.version }}
67-
body: ${{ steps.release-changelog.outputs.content }}
63+
tag_name: v10.2.0
64+
body: |
65+
## 10.2.0 - 2026-01-08
66+
67+
_Full changeset and discussions: [#1219](https://github.com/OpenTermsArchive/engine/pull/1219)._
68+
69+
> Development of this release was supported by [Reset Tech](https://www.reset.tech).
70+
71+
### Changed
72+
73+
- Add `Advertising Content Policy` terms type, introduced in [`terms-types@2.2.0`](https://github.com/OpenTermsArchive/terms-types/blob/main/CHANGELOG.md#220---2025-12-30)
6874
token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}
6975

7076
- name: Trigger documentation deploy
@@ -73,27 +79,27 @@ jobs:
7379
token: ${{ secrets.TRIGGER_DOCS_DEPLOY_TOKEN }}
7480
event-type: engine-release
7581
repository: OpenTermsArchive/docs
76-
client-payload: '{"version": "v${{ steps.release-changelog.outputs.version }}"}'
77-
78-
clean_changelog:
79-
if: github.event.pull_request.merged == true && needs.changelog.outputs.release-type == 'no-release'
80-
needs: [ changelog ]
81-
runs-on: ubuntu-latest
82-
steps:
83-
- uses: actions/checkout@v4
84-
with:
85-
ref: main
86-
token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}
87-
88-
- name: Configure Git author
89-
run: |
90-
git config --global user.name "Open Terms Archive Release Bot"
91-
git config --global user.email "release-bot@opentermsarchive.org"
92-
93-
- name: Update changelog for release
94-
uses: OpenTermsArchive/changelog-action/release@v0.2.0
95-
96-
- name: Save changelog
97-
run: |
98-
git commit -m "Clean changelog" CHANGELOG.md
99-
git push origin main
82+
client-payload: '{"version": "v10.2.0"}'
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+
# ref: main
92+
# token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}
93+
94+
# - name: Configure Git author
95+
# run: |
96+
# git config --global user.name "Open Terms Archive Release Bot"
97+
# git config --global user.email "release-bot@opentermsarchive.org"
98+
99+
# - name: Update changelog for release
100+
# uses: OpenTermsArchive/changelog-action/release@v0.2.0
101+
102+
# - name: Save changelog
103+
# run: |
104+
# git commit -m "Clean changelog" CHANGELOG.md
105+
# git push origin main

0 commit comments

Comments
 (0)