Skip to content

Commit

Permalink
refactor: extract publish steps
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaojiaojiaoCpbr committed Feb 21, 2024
1 parent 78df37f commit 7a4faa6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/workflows/npm-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@ jobs:
- name: Build perseus-core
run: npm run build:publish
working-directory: ./packages
publish:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "20.10.0"
cache: "yarn"
registry-url: https://registry.npmjs.org
scope: "@junyiacademy"
- name: Publish to npm
run: npm publish
working-directory: ./packages
Expand Down
2 changes: 1 addition & 1 deletion packages/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@junyiacademy/perseus-core",
"version": "1.0.16",
"version": "1.0.17",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"license": "MIT",
Expand Down

0 comments on commit 7a4faa6

Please sign in to comment.