Skip to content

fix(changelog): handle frozen commit objects from conventional-changelog-writer #60

fix(changelog): handle frozen commit objects from conventional-changelog-writer

fix(changelog): handle frozen commit objects from conventional-changelog-writer #60

Workflow file for this run

name: CI
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Cache node_modules
id: cache-modules
uses: actions/cache@v4
with:
path: '**/node_modules'
key: node-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Lint
run: yarn lint
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Cache node_modules
id: cache-modules
uses: actions/cache@v4
with:
path: '**/node_modules'
key: node-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Unit Tests
run: yarn test:ci
release:
permissions:
id-token: write
contents: write
needs: [lint, test]
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Upgrade npm for OIDC support
run: npm install -g npm@latest
- name: Cache node_modules
id: cache-modules
uses: actions/cache@v4
with:
path: '**/node_modules'
key: node-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Configure git
run: |
git config --global user.email "instantsearch-bot@algolia.com"
git config --global user.name "Algolia"
- name: Trigger Ship.js release
run: yarn shipjs trigger
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}