Files
RSSHub/.github/workflows/npm-publish.yml
T
dependabot[bot] 3e32ff2187 chore(deps): bump actions/checkout from 6.0.1 to 6.0.2 (#20959)
Bumps [actions/checkout](https://github.com/actions/checkout) from 6.0.1 to 6.0.2.
- [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/8e8c483db84b4bee98b60c0593521ed34d9990e8...de0fac2e4500dabe0009e67214ff5f5447ce83dd)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 6.0.2
  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-01-23 21:51:56 +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@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.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