Skip to content

Commit

Permalink
add npm publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
patmood committed Nov 7, 2022
1 parent a2178e2 commit 1b7917e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: NPM Publish

on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pocketbase-typegen",
"version": "1.0.12",
"version": "1.0.13",
"description": "Generate pocketbase record types from your database",
"main": "dist/index.js",
"bin": {
Expand Down

0 comments on commit 1b7917e

Please sign in to comment.