Add build step #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: | |
- main | |
- chore/add-cd | |
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 | |
- name: Build | |
run: npm run build | |
shell: bash | |
- name: Semantic Release | |
uses: BrightspaceUI/actions/semantic-release@main | |
with: | |
GITHUB_TOKEN: ${{ steps.gh-token.outputs.token }} | |
NPM: true | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
DRY_RUN: true |