0.0.19 #7
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: Frontend Release | |
on: | |
release: | |
types: [published] | |
defaults: | |
run: | |
working-directory: frontend | |
jobs: | |
testing: | |
name: Release | |
runs-on: ubuntu-20.04 | |
timeout-minutes: 5 | |
steps: | |
- name: Checkout Project Code | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
ref: main | |
- name: Use NodeJS LTS | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16.x | |
registry-url: 'https://registry.npmjs.org' | |
- name: Install | |
run: npm ci | |
- name: Build | |
run: npm run build | |
- name: Lint | |
run: npm run check | |
- name: Test | |
run: npm run test | |
env: | |
CI: true | |
- name: Bump New Version | |
run: sh scripts/bump/exec.sh | |
env: | |
GIT_RELEASE_TOKEN: ${{ secrets.GIT_RELEASE_TOKEN }} | |
REPO: ${{ github.repository }} | |
VERSION_TAG: ${{ github.event.release.tag_name }} | |
- name: Re-build New Version | |
run: npm run build | |
- name: Publish | |
run: | | |
npx lerna publish from-package --yes --dist-tag \ | |
"$([[ ${{ github.event.release.tag_name }} =~ alpha|beta|rc ]] && echo "next" || echo "latest")" | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |