Skip to content

Commit 4c55448

Browse files
authored
chore: Add release action (#700)
1 parent 2129120 commit 4c55448

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.github/workflows/release.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
release:
8+
timeout-minutes: 2
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Create GH Token
12+
uses: actions/create-github-app-token@v1
13+
id: gh-token
14+
with:
15+
app-id: ${{ vars.GH_TOKEN_APP_ID }}
16+
private-key: ${{ secrets.GH_TOKEN_APP_PRIVATE_KEY }}
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
with:
20+
persist-credentials: false
21+
- name: Setup Node
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version-file: .nvmrc
25+
cache: npm
26+
- name: Install Dependencies
27+
run: npm ci
28+
- name: Build
29+
run: npm run build
30+
- name: Semantic Release
31+
uses: BrightspaceUI/actions/semantic-release@main
32+
with:
33+
GITHUB_TOKEN: ${{ steps.gh-token.outputs.token }}
34+
NPM: true
35+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
16

0 commit comments

Comments
 (0)