Skip to content

Commit

Permalink
Merge pull request #1 from liblaber/generate
Browse files Browse the repository at this point in the history
Author
  • Loading branch information
b-bozo authored Jul 18, 2024
2 parents ce17fd1 + 34f6a37 commit 136092d
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/publish_npm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish to npm

on:
push:
tags:
- 'v*.*.*' # This triggers the action on version tags

jobs:
publish:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: npm install

- name: Build package
run: npm run build

- name: Publish to npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -131,5 +131,3 @@ dist

.DS_Store
thumbs.db

.github
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"api",
"client"
],
"author": "",
"author": "LibLab",
"license": "",
"devDependencies": {
"typescript": "5.3.3"
Expand Down

0 comments on commit 136092d

Please sign in to comment.