This repository has been archived by the owner on Oct 3, 2024. It is now read-only.
Lower cost by default #91
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: build-test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
concurrency: ci-${{ github.ref}}-${{ github.event_name }} | |
env: | |
NODE_VERSION: 16 | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
if: github.ref_name == github.event.repository.default_branch | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- run: npm ci --dev --workspaces false --fund false | |
- env: | |
GITHUB_TOKEN: ${{ secrets.SLIC_GITHUB_TOKEN }} | |
HUSKY: 0 | |
run: npm run release | |
lint-commits: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
if: github.ref_name != github.event.repository.default_branch | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
- run: npm ci --dev --workspaces false --fund false | |
- name: lint-commits | |
run: ./node_modules/.bin/commitlint --from HEAD~${{ github.event.pull_request.commits }} --to HEAD --verbose |