From 112a6c0e8f1eb8fe62563b017df721cf5b79043c Mon Sep 17 00:00:00 2001 From: Sara Burns Date: Wed, 3 Jun 2026 14:16:28 -0400 Subject: [PATCH] chore: Add Release CI workflow for npm and GitHub --- .github/workflows/release.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..629da07 --- /dev/null +++ b/.github/workflows/release.yml @@ -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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + fetch-depth: 0 + + - name: Setup Node.js + uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 + with: + node-version-file: '.nvmrc' + + - name: Install dependencies + run: npm ci + + - name: Release to npm/Github + run: npx semantic-release@25 + env: + GITHUB_TOKEN: ${{ secrets.OPENEDX_SEMANTIC_RELEASE_GITHUB_TOKEN }}