Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

CLi v0.2 + Prettier (#633) #483

CLi v0.2 + Prettier (#633)

CLi v0.2 + Prettier (#633) #483

Workflow file for this run

name: "CI: releasing version"
"on":
push:
branches: [ main ]
jobs:
release:
if: ${{ github.event.repository.full_name == github.repository }} && {{ !contains(github.event.head_commit.message, "skip ci") }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
with:
fetch-depth: 0
# Whether to configure the token or SSH key with the local git config
# Default: true
persist-credentials: false # <--- checking this in commit context
- name: "Enable yarn cache"
uses: c-hive/gha-yarn-cache@d528cd63c28aed0a9f44b1cada95050d7aa95c2e # v2 # using cache
- name: "Setup node@14"
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3
with:
node-version: 16
- name: "Install dependencies"
run: |
yarn set version 3.1.1
yarn install
- name: "Semantic release"
run: yarn semantic-release
env:
HUSKY: 0
CI: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}