Skip to content

Commit

Permalink
workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
iRuxu committed May 10, 2020
1 parent fe2124f commit daf1632
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,32 @@ jobs:
access-key-id: ${{secrets.AccessKey_ID_CDN}}
access-key-secret: ${{secrets.Access_Key_Secret_CDN}}
- run: ossutil cp -rf data oss://jx3box/data

publish-npm:
# needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
# - run: npm ci
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

publish-gpr:
# needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://npm.pkg.github.com/
scope: "@jx3box"
# - run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
todo
node_modules
8 changes: 8 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node_modules
raw
todo
tools
.github
CNAME
.gitignore
.npmignore
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jx3box/jx3box-data",
"version": "1.0.0",
"version": "0.0.3",
"description": "静态数据库,自动同步至OSS,OSS CDN需手动处理",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit daf1632

Please sign in to comment.