Skip to content

Commit

Permalink
fix: publish workflow (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
hazimoarafa authored Jan 12, 2025
1 parent dabd8b3 commit bd911f3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build User Tasks
name: Build

on:
pull_request:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ jobs:
- name: Trigger Build Standalone
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT_USER_TASKS }}
run: gh workflow run main.yml -R littlehorse-enterprises/sso-workflow-bridge-api
run: gh workflow run main.yml -R littlehorse-enterprises/lh-sso-workflow-bridge-api
9 changes: 4 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
name: Publish User Tasks API Client
name: Publish API Client

on:
push:
tags:
- "**"
- "v*.*.*"

permissions:
packages: write
contents: read

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

- name: Setup NodeJS
uses: actions/setup-node@v4
Expand All @@ -24,6 +23,6 @@ jobs:
cache: 'npm'

- name: Publish
run: npm publish
run: npm publish -w api-client --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
2 changes: 1 addition & 1 deletion api-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"author": "LittleHorse Enterprises",
"repository": {
"type": "git",
"url": "https://github.com/littlehorse-enterprises/sso-workflow-bridge.git"
"url": "git+https://github.com/littlehorse-enterprises/sso-workflow-bridge.git"
},
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit bd911f3

Please sign in to comment.