chore(deps): bump @types/npmcli__arborist from 5.6.5 to 5.6.9 #1551
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 | |
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 |