Skip to content

Commit

Permalink
chore: Add release action (#700)
Browse files Browse the repository at this point in the history
  • Loading branch information
eKoopmans authored Jun 30, 2024
1 parent 2129120 commit 4c55448
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Release
on:
push:
branches:
- main
jobs:
release:
timeout-minutes: 2
runs-on: ubuntu-latest
steps:
- name: Create GH Token
uses: actions/create-github-app-token@v1
id: gh-token
with:
app-id: ${{ vars.GH_TOKEN_APP_ID }}
private-key: ${{ secrets.GH_TOKEN_APP_PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm
- name: Install Dependencies
run: npm ci
- name: Build
run: npm run build
- name: Semantic Release
uses: BrightspaceUI/actions/semantic-release@main
with:
GITHUB_TOKEN: ${{ steps.gh-token.outputs.token }}
NPM: true
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16

0 comments on commit 4c55448

Please sign in to comment.