Release v0.12.1 (#148) #171
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"] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Use Node.js 18.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
cache: "npm" | |
- name: Install dependencies | |
run: npm ci | |
- name: Build tests | |
run: npm run test:build | |
- name: Build Playlet | |
run: npm run build:release:ci | |
- name: Use Java 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: "temurin" | |
java-version: "17" | |
- name: Download the Static Channel Analysis CLI | |
run: | | |
curl -sSL "https://devtools.web.roku.com/static-channel-analysis/sca-cmd.zip" -o sca-cmd.zip | |
unzip sca-cmd.zip | |
- name: Run Analysis on Playlet Lib | |
# Note: we don't set the exit code to on error, because sca treats the lib | |
# as a standalone app, and logs all sorts of errors that are not relevant to | |
# a Component Library. | |
# This run is simply to check if there's any interesting output comes up. | |
run: ./sca-cmd/bin/sca-cmd ./release/playlet-lib.zip | |
- name: Run Analysis on Playlet App | |
run: ./sca-cmd/bin/sca-cmd ./release/playlet.zip --exit error | |
- name: Delete Canary release | |
uses: dev-drprasad/[email protected] | |
with: | |
tag_name: canary | |
github_token: ${{ secrets.GH_TOKEN }} | |
- name: Extract changelog | |
run: | | |
latest_release=$(awk 'BEGIN { RS="## \\[" } NR==2 { print "## ["$0 }' CHANGELOG.md) | |
echo -e "\n$latest_release" >> docs/canary-changelog.md | |
- name: Create Canary release | |
run: gh release create canary ./release/playlet.zip ./release/playlet-lib.zip --notes-file docs/canary-changelog.md --prerelease --title Canary | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} |