v.0.0.24 #37
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: | |
release: | |
types: [published] | |
jobs: | |
release: | |
strategy: | |
matrix: | |
node-version: [14.x] | |
runs-on: ubuntu-latest | |
env: | |
NPM_TOKEN: ${{secrets.NPM_TOKEN}} | |
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} | |
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | |
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | |
steps: | |
- name: 🛑 Cancel Previous Runs | |
uses: styfle/[email protected] | |
- name: ⬇️ Checkout | |
uses: actions/checkout@v2 | |
with: | |
# https://github.com/lerna/lerna/issues/2542 | |
# pulls all commits (needed for lerna / semantic release to correctly version) | |
fetch-depth: "0" | |
- name: ⎔ Use Node Matrix Versions | |
uses: actions/setup-node@v1 | |
with: | |
scope: '@ciceksepeti' | |
node-version: ${{ matrix.node-version }} | |
registry-url: https://registry.npmjs.org | |
- name: ⬇️ Install Dependencies | |
run: yarn --frozen-lockfile | |
- name: 📋 Format Check | |
run: yarn format --check | |
- name: ⬣ Eslint | |
run: yarn lint | |
- name: ⚙️ Build | |
run: yarn lerna:build | |
- name: 🧪 Run Tests with Coverage | |
run: yarn test:coverage:summary | |
- name: Publish Packages | |
run: | | |
npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}" | |
yarn lerna:publish from-package --yes | |
- name: 🚀 Deploying Doc Website to Vercel | |
uses: amondnet/vercel-action@v20 | |
id: deploy-vercel-production | |
with: | |
github-comment: false | |
vercel-token: ${{ secrets.VERCEL_TOKEN }} | |
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }} | |
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }} | |
vercel-args: '--prod' | |
scope: ${{ secrets.VERCEL_ORG_ID }} | |
working-directory: doc-website | |
alias-domains: cactus-ui.ciceksepeti.dev | |