Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Lint commit messages
run: npm run commit-messages:lint
# - name: Lint commit messages
# run: npm run commit-messages:lint
55 changes: 24 additions & 31 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Release

on:
pull_request_target:
branches:
- main
branches:
- test-release
types: [ closed ]

permissions:
Expand All @@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}

Expand Down Expand Up @@ -50,36 +50,29 @@ jobs:
git commit -m "Release v${{ steps.release-changelog.outputs.version }}"
git tag v${{ steps.release-changelog.outputs.version }}

- 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
uses: CasperWA/push-protected@v2
with:
token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}
branch: main
unprotect_reviews: true

- name: Update npm
run: npm install -g npm@latest

# Publish to NPM first, before pushing to repository
# If this fails, no changes are pushed to the repository, ensuring consistency
- name: Publish to NPM public repository
run: npm publish --provenance
run: npm publish --provenance --dry-run

# Only push to repository after successful NPM publish
- name: Push changes to repository
run: git push origin && git push --tags

- name: Create GitHub release
uses: softprops/action-gh-release@v1
with:
tag_name: v${{ steps.release-changelog.outputs.version }}
body: ${{ steps.release-changelog.outputs.content }}
token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}

- name: Trigger documentation deploy
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.TRIGGER_DOCS_DEPLOY_TOKEN }}
event-type: engine-release
repository: OpenTermsArchive/docs
client-payload: '{"version": "v${{ steps.release-changelog.outputs.version }}"}'
run: git push origin test-release

# - name: Create GitHub release
# uses: softprops/action-gh-release@v2
# with:
# tag_name: v${{ steps.release-changelog.outputs.version }}
# body: ${{ steps.release-changelog.outputs.content }}
# token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}

# - name: Trigger documentation deploy
# uses: peter-evans/repository-dispatch@v2
# with:
# token: ${{ secrets.TRIGGER_DOCS_DEPLOY_TOKEN }}
# event-type: engine-release
# repository: OpenTermsArchive/docs
# client-payload: '{"version": "v${{ steps.release-changelog.outputs.version }}"}'

clean_changelog:
if: github.event.pull_request.merged == true && needs.changelog.outputs.release-type == 'no-release'
Expand All @@ -101,4 +94,4 @@ jobs:
- name: Save changelog
run: |
git commit -m "Clean changelog" CHANGELOG.md
git push origin
git push origin test-release
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

All changes that impact users of this module are documented in this file, in the [Common Changelog](https://common-changelog.org) format with some additional specifications defined in the CONTRIBUTING file. This codebase adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased [patch]

> Development of this release was supported by the [French Ministry for Foreign Affairs](https://www.diplomatie.gouv.fr/fr/politique-etrangere-de-la-france/diplomatie-numerique/) through its ministerial [State Startups incubator](https://beta.gouv.fr/startups/open-terms-archive.html) under the aegis of the Ambassador for Digital Affairs.

### Fixed

- Test

## 10.2.0 - 2026-01-08

_Full changeset and discussions: [#1219](https://github.com/OpenTermsArchive/engine/pull/1219)._
Expand Down
Loading