Files
RSSHub/.github/workflows/npm-publish.yml
T
dependabot[bot] 5ad50d3478 chore(deps): bump pnpm/action-setup from 4.3.0 to 4.4.0 (#21398)
Bumps [pnpm/action-setup](https://github.com/pnpm/action-setup) from 4.3.0 to 4.4.0.
- [Release notes](https://github.com/pnpm/action-setup/releases)
- [Commits](https://github.com/pnpm/action-setup/compare/b906affcce14559ad1aafd4ab0e942779e9f58b1...fc06bc1257f339d1d5d8b3a19a8cae5388b55320)

---
updated-dependencies:
- dependency-name: pnpm/action-setup
  dependency-version: 4.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-16 17:11:37 +08:00

43 lines
1.4 KiB
YAML

name: npm Publish
on:
push:
branches:
- master
paths:
- '.github/workflows/npm-publish.yml'
- 'tsdown-lib.config.ts'
- 'scripts/workflow/build-routes.ts'
- 'lib/**'
permissions:
id-token: write # Required for OIDC
jobs:
build:
name: npm publish
if: github.repository == 'DIYgod/RSSHub'
runs-on: ubuntu-slim
timeout-minutes: 5
env:
HUSKY: 0
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4.4.0
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: lts/*
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies (pnpm)
run: pnpm i
- name: Run postinstall script for dependencies
run: pnpm rb
- name: Release
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
pnpx version-from-git --allow-same-version --template 'master.short'
- name: Publish to npmjs
run: pnpm publish --access public --tag latest