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
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release CI
on:
push:
branches:
- main

permissions:
id-token: write # Required for OIDC
contents: write # For Semantic Release tagging

jobs:
release:
name: Release
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'

- name: Install dependencies
run: npm ci

- name: Release to npm/Github
run: npx semantic-release@25 --dry-run
env:
GITHUB_TOKEN: ${{ secrets.OPENEDX_SEMANTIC_RELEASE_GITHUB_TOKEN }}
21 changes: 21 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"branches": [
"main"
],
"tagFormat": "v${version}",
"verifyConditions": [
"@semantic-release/npm",
"@semantic-release/github"
],
"analyzeCommits": "@semantic-release/commit-analyzer",
"generateNotes": "@semantic-release/release-notes-generator",
"prepare": [
"@semantic-release/npm"
],
"publish": [
"@semantic-release/npm",
"@semantic-release/github"
],
"success": [],
"fail": []
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openedx/frontend-dev-utils",
"version": "1.0.0-prealpha",
"version": "1.0.0-semantically-released",
"description": "Development utilities for use with @openedx/frontend-base",
"homepage": "https://github.com/openedx/frontend-dev-utils#readme",
"bugs": {
Expand Down