Skip to content

chore(deps): bump glob from 10.4.1 to 10.4.2 #1554

chore(deps): bump glob from 10.4.1 to 10.4.2

chore(deps): bump glob from 10.4.1 to 10.4.2 #1554

name: Build
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: write
packages: write
jobs:
build_test_publish:
name: Build, test and publish
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22.x
- name: Set yarn cache directory
id: yarn-cache-dir-path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
- name: Get yarn cache
uses: actions/cache@v4
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Setup yarn
run: |
corepack prepare yarn@stable --activate
yarn set version 4.2.1
- name: Build, lint and test
run: |
yarn --immutable
yarn lint
yarn build:ts
yarn test
- name: Release on npm
if: |
github.event_name != 'pull_request' &&
!startsWith(github.event.head_commit.message, 'chore(deps')
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
run: |
git config "user.name" "ffflobot"
git config "user.email" "ffflobot@users.noreply.github.com"
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
yarn release