Skip to content

feat: add getthumbslinks client method (#16) #18

feat: add getthumbslinks client method (#16)

feat: add getthumbslinks client method (#16) #18

name: release-please
on:
push:
branches:
- main
workflow_dispatch:
inputs:
publish_tag:
description: 'Existing tag to (re-)publish, e.g. pcloud-kit-v0.1.1'
required: true
type: string
permissions:
contents: write
pull-requests: write
jobs:
release-please:
if: github.event_name == 'push'
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
tag_name: ${{ steps.release.outputs.tag_name }}
steps:
- uses: googleapis/release-please-action@v5
id: release
with:
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
config-file: release-please-config.json
manifest-file: .release-please-manifest.json
publish:
needs: release-please
if: |
always() && (
(github.event_name == 'push' && needs.release-please.outputs.release_created == 'true') ||
github.event_name == 'workflow_dispatch'
)
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v6
with:
ref: ${{ inputs.publish_tag || needs.release-please.outputs.tag_name }}
- uses: pnpm/action-setup@v5
- uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
registry-url: https://registry.npmjs.org
cache: pnpm
- name: Upgrade npm for OIDC trusted publishing
run: npm install -g npm@~11.10.0
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm build
- name: Publish to npm
run: npm publish --provenance --access public --ignore-scripts