mirror of
https://github.com/goauthentik/authentik.git
synced 2026-08-30 18:51:39 -07:00
Bumps [pnpm/action-setup](https://github.com/pnpm/action-setup) from 6.0.9 to 6.0.10.
- [Release notes](https://github.com/pnpm/action-setup/releases)
- [Commits](0ebf47130e...0977fd9972)
---
updated-dependencies:
- dependency-name: pnpm/action-setup
dependency-version: 6.0.10
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
64 lines
2.0 KiB
YAML
64 lines
2.0 KiB
YAML
---
|
|
name: Packages - Publish NPM packages
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- packages/tsconfig/**
|
|
- packages/eslint-config/**
|
|
- packages/prettier-config/**
|
|
- packages/docusaurus-config/**
|
|
- packages/logger-js/**
|
|
- packages/esbuild-plugin-live-reload/**
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
# Required for NPM OIDC trusted publisher
|
|
id-token: write
|
|
contents: read
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
package:
|
|
# The order of the `*config` packages should not be changed, as they depend on each other.
|
|
- packages/tsconfig
|
|
- packages/eslint-config
|
|
- packages/prettier-config
|
|
- packages/docusaurus-config
|
|
- packages/logger-js
|
|
- packages/esbuild-plugin-live-reload
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v5
|
|
with:
|
|
fetch-depth: 2
|
|
- uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10
|
|
- name: Pin pnpm store directory
|
|
run: |
|
|
echo "PNPM_HOME=${RUNNER_TEMP}/pnpm-home" >> "$GITHUB_ENV"
|
|
echo "npm_config_store_dir=${RUNNER_TEMP}/pnpm-home/store" >> "$GITHUB_ENV"
|
|
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v4
|
|
with:
|
|
node-version-file: package.json
|
|
registry-url: https://registry.npmjs.org
|
|
cache: pnpm
|
|
cache-dependency-path: pnpm-lock.yaml
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
- name: Get changed files
|
|
id: changed-files
|
|
uses: tj-actions/changed-files@9426d40962ed5378910ee2e21d5f8c6fcbf2dd96 # 24d32ffd492484c1d75e0c0b894501ddb9d30d62
|
|
with:
|
|
files: |
|
|
${{ matrix.package }}/package.json
|
|
- name: Publish package
|
|
if: steps.changed-files.outputs.any_changed == 'true'
|
|
working-directory: ${{ matrix.package }}
|
|
run: |
|
|
pnpm run build
|
|
pnpm publish --no-git-checks
|