1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-12-14 09:12:34 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

update publish ci

This commit is contained in:
sunnylqm
2025-12-10 22:12:44 +08:00
parent 43967afb14
commit 6ab80be42f

View File

@@ -2,6 +2,11 @@ name: Publish Package to npmjs
on:
release:
types: [published]
permissions:
id-token: write # Required for OIDC
contents: read
jobs:
build:
runs-on: ubuntu-latest
@@ -17,6 +22,7 @@ jobs:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: bun install --frozen-lockfile
# Ensure npm 11.5.1 or later is installed
- name: Update npm
run: npm install -g npm@latest
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}