Skip to content

fix(github-action): update actions/checkout ( v4.2.0 → v4.2.1 ) #330

fix(github-action): update actions/checkout ( v4.2.0 → v4.2.1 )

fix(github-action): update actions/checkout ( v4.2.0 → v4.2.1 ) #330

Workflow file for this run

name: Publish
on:
push:
branches:
- main
permissions:
contents: write
issues: write
pull-requests: write
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.2.1
with:
fetch-depth: 0
- name: Setup Node.js Environment
uses: actions/setup-node@v4.0.4
with:
always-auth: true
node-version: 20
registry-url: 'https://registry.npmjs.org'
scope: '@ivuorinen'
- name: Cache Node Modules
uses: actions/cache@v4.1.0
id: cache
with:
path: node_modules
key: node-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: yarn install
- name: Config Git User
run: |
git config --global user.name "${{ github.actor }}"
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
- name: Bootstrap Lerna
run: yarn lerna:bootstrap:ci
- name: Auto Commit Changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 'chore: 🤖 bump versions and publish packages'
commit_options: '--no-verify'
- name: Bump Versions
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn lerna:version
- name: Publish Packages
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn lerna:publish