Files
RSSHub/.github/workflows/npm-publish.yml
T
dependabot[bot] 76e7641d51 chore(deps): bump actions/setup-node from 6.3.0 to 6.4.0 (#21772)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 6.3.0 to 6.4.0.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/53b83947a5a98c8d113130e565377fae1a50d02f...48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: 6.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-04-20 21:01:29 +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 # v5.0.0
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.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