diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index c461c85..509d2d1 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -1,6 +1,3 @@ -# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created -# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages - name: Node.js Package on: @@ -8,26 +5,19 @@ on: types: [created] jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: 16 - - run: npm ci - - run: npm test - publish-npm: - needs: build runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: node-version: 16 registry-url: https://registry.npmjs.org/ - - run: npm ci - - run: npm publish + cache: "yarn" + + - run: yarn build + + - run: npm publish --tag beta env: - NODE_AUTH_TOKEN: ${{secrets.npm_token}} + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} diff --git a/.husky/pre-commit b/.husky/pre-commit index b079134..352f9ff 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -2,4 +2,5 @@ . "$(dirname "$0")/_/husky.sh" yarn test +yarn examples yarn fmt diff --git a/examples.md b/examples.md index f29d76f..0025e18 100644 --- a/examples.md +++ b/examples.md @@ -16,7 +16,7 @@ erDiagram } comment }|--|| user: author ``` - + ## Join Table ```mermaid @@ -35,6 +35,7 @@ erDiagram product ||--|{ product_tag: tags ``` + ## Carts ```mermaid