Skip to content

Commit 565afcd

Browse files
committed
Merge branch 'master' into djoy/plugin_classes
2 parents ff5051e + dbb3c68 commit 565afcd

File tree

8 files changed

+1603
-393
lines changed

8 files changed

+1603
-393
lines changed

.github/workflows/lockfileversion-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ on:
1010

1111
jobs:
1212
version-check:
13-
uses: openedx/.github/.github/workflows/lockfileversion-check-v3.yml@master
13+
uses: openedx/.github/.github/workflows/lockfile-check.yml@master
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Manual Publish
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
tag:
6+
required: true
7+
description: NPM distribution tag to use for the backported release (npm publish --tag <tag>)
8+
jobs:
9+
release:
10+
name: Manual Publish
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
- name: Setup Nodejs Env
18+
run: echo "NODE_VER=`cat .nvmrc`" >> $GITHUB_ENV
19+
- name: Setup Node.js
20+
uses: actions/setup-node@v2
21+
with:
22+
node-version: ${{ env.NODE_VER }}
23+
- name: Install dependencies
24+
run: npm ci
25+
- name: Lint
26+
run: npm run lint
27+
- name: Test
28+
run: npm run test
29+
- name: Coverage
30+
uses: codecov/codecov-action@v2
31+
- name: Build
32+
run: npm run build
33+
# NPM expects to be authenticated for publishing. This step will fail CI if NPM is not authenticated
34+
- name: Check NPM authentication
35+
run: |
36+
echo "//registry.npmjs.org/:_authToken=${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }}" >> .npmrc
37+
npm whoami
38+
- name: Release
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }}
41+
NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }}
42+
# `npm publish` relies on version specified in package.json file
43+
run: npm publish ./dist --tag ${{github.event.inputs.tag}} # e.g., old-version

0 commit comments

Comments
 (0)