chore(deps): bump actions/checkout from 4.1.1 to 4.1.2 (#321) #658
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: 'CI' | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # ratchet:actions/checkout@v3 | |
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # ratchet:actions/setup-node@v3 | |
with: | |
node-version: 20 | |
# build and test action | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Check format and lint | |
run: yarn run format-check && yarn lint | |
- name: Build and package | |
run: yarn build | |
# update docs | |
- uses: npalm/action-docs-action@9fa96f2c32b29363abe935e2c3d4ee27bc84dce1 # ratchet:npalm/[email protected] | |
- name: Update dist in the repository | |
if: github.ref != 'refs/heads/main' | |
uses: stefanzweifel/git-auto-commit-action@8756aa072ef5b4a080af5dc8fef36c5d586e521d # ratchet:stefanzweifel/[email protected] | |
with: | |
commit_message: 'chore(ci): Updating dist and docs' | |
file_pattern: 'dist/* README.md' | |
- name: Create Pull Request (main branch only) | |
if: github.ref == 'refs/heads/main' && github.repository_owner == 'philips-software' | |
uses: peter-evans/create-pull-request@70a41aba780001da0a30141984ae2a0c95d8704e # ratchet:peter-evans/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
commit-message: 'chore(ci): Updating dist and docs' | |
title: 'chore(ci): Updating dist and docs' | |
branch: update-docs | |
branch-suffix: random | |
base: ${{ github.event.pull_request.base.ref }} | |
delete-branch: true | |
release: | |
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
needs: build | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # ratchet:actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Release | |
uses: google-github-actions/release-please-action@a37ac6e4f6449ce8b3f7607e4d97d0146028dc0b # ratchet:google-github-actions/release-please-action@v3 | |
id: release | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
release-type: simple |