Skip to content

Commit

Permalink
Merge pull request #3 from simonireilly/chore/publishing
Browse files Browse the repository at this point in the history
chore/publishing

Enable publishing of the code for the release to a beta tag on NPM
  • Loading branch information
simonireilly authored Jun 9, 2022
2 parents c7d8acf + 0ff2646 commit d96b92c
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Node.js Package

on:
release:
types: [created]

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
cache: "yarn"

- run: yarn build

- run: npm publish --tag beta
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
. "$(dirname "$0")/_/husky.sh"

yarn test
yarn examples
yarn fmt
3 changes: 2 additions & 1 deletion examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ erDiagram
}
comment }|--|| user: author
```

## Join Table

```mermaid
Expand All @@ -35,6 +35,7 @@ erDiagram
product ||--|{ product_tag: tags
```


## Carts

```mermaid
Expand Down

0 comments on commit d96b92c

Please sign in to comment.