Skip to content

chore(deps): bump actions/checkout from 5.0.0 to 6.0.1 (#89) #89

chore(deps): bump actions/checkout from 5.0.0 to 6.0.1 (#89)

chore(deps): bump actions/checkout from 5.0.0 to 6.0.1 (#89) #89

Workflow file for this run

name: Publish releases
on:
push:
branches: [main]
permissions:
contents: read
env:
YARN_ENABLE_GLOBAL_CACHE: false
jobs:
release-please:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
outputs:
release_created: ${{ steps.release.outputs.release_created }}
release_tag: ${{ steps.release.outputs.tag_name }}
steps:
- uses: googleapis/release-please-action@c2a5a2bd6a758a0937f1ddb1e8950609867ed15c # v4.3.0
id: release
with:
config-file: release-please-config.json
npm-publish:
needs: release-please
if: ${{ needs.release-please.outputs.release_created }}
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
node-version: lts/*
env:
SKIP_YARN_COREPACK_CHECK: 1
- name: Get the Yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(corepack yarn config get cacheFolder)" >> $GITHUB_OUTPUT
shell: bash
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: ${{steps.yarn-cache-dir-path.outputs.dir}}
key: ${{runner.os}}-yarn-${{hashFiles('**/yarn.lock')}}
restore-keys: |
${{runner.os}}-yarn-
- name: Copy README to sub-directories
run: |
cp README.md packages/cli/.
cp README.md packages/core/.
- name: Publish to the npm registry
run: |
corepack yarn install --immutable
corepack yarn build
corepack yarn workspaces foreach --all --no-private npm publish --provenance --access public
env:
YARN_NPM_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}