Files
RSSHub/.github/workflows/npm-publish.yml
T
dependabot[bot] e6b750f22b chore(deps): bump actions/checkout from 7.0.0 to 7.0.1 (#22773)
Bumps [actions/checkout](https://github.com/actions/checkout) from 7.0.0 to 7.0.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0...3d3c42e5aac5ba805825da76410c181273ba90b1)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 7.0.1
  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>
2026-07-21 08:06:52 +00: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: 10
env:
HUSKY: 0
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.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