Skip to content

Commit

Permalink
chore: add npm release action (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
huhuanming authored May 29, 2024
1 parent cba878d commit 839d903
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/package-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: package-publish

on: workflow_dispatch

jobs:
package-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: Install Package
run: yarn
- name: Publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm whoami && npm publish --access public
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Created by .ignore support plugin (hsz.mobi)

.idea
.history
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "react-native-cloud-fs",
"name": "@onekeyfe/react-native-cloud-fs",
"version": "2.6.0",
"description": "",
"main": "index.js",
Expand Down

0 comments on commit 839d903

Please sign in to comment.