Skip to content

Commit

Permalink
Merge pull request #160 from zhaoyuuu/optimize
Browse files Browse the repository at this point in the history
Optimize
  • Loading branch information
zhaoyuuu authored Feb 19, 2023
2 parents 715cbbc + c3f7047 commit ebf853b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types: [published]

jobs:
run_test_and_build:
run_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -14,10 +14,9 @@ jobs:
node-version: 16
- run: npm ci
- run: npm run test:nowatch
- run: npm run build

publish-npm:
needs: run_test_and_build
needs: run_test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -26,6 +25,7 @@ jobs:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/coverage

# production
# /dist
/dist

# misc
.DS_Store
Expand Down

0 comments on commit ebf853b

Please sign in to comment.