Skip to content

Commit

Permalink
add github workflow for types publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
HuzzNZ committed Apr 1, 2024
1 parent abb2dec commit f6f670f
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/backend-dev-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ env:
on:
push:
paths:
- "backend/**"
- 'backend/**'

jobs:
Deploy-Development-Preview:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/backend-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches:
- dev
paths:
- "backend/**"
- 'backend/**'

jobs:
Deploy-Development:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/backend-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches:
- main
paths:
- "backend/**"
- 'backend/**'

jobs:
Deploy-Production:
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/types-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Types - Publish to npm

on:
push:
branches:
- main
paths:
- 'types/**'

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: Install Dependencies
run: npm ci
- name: Build package artifacts
run: npm run build
- name: Publish to npm
run: npm publish --access public

0 comments on commit f6f670f

Please sign in to comment.