Skip to content

Commit

Permalink
actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sdairs committed Dec 10, 2024
1 parent 1ef6752 commit e4eb3e8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/cli_onPushToMain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: cd apps/cli
- name: Check if version already exists
id: version-check
working-directory: apps/cli
run: |
package_version=$(node -p "require('./package.json').version")
exists=$(gh api repos/${{ github.repository }}/releases/tags/v$package_version >/dev/null 2>&1 && echo "true" || echo "")
Expand All @@ -38,6 +38,7 @@ jobs:
- name: Generate oclif README
if: ${{ steps.version-check.outputs.skipped == 'false' }}
id: oclif-readme
working-directory: apps/cli
run: |
pnpm install
pnpm exec oclif readme
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cli_onRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
with:
node-version: latest
- run: pnpm install
- run: cd apps/cli
- uses: JS-DevTools/npm-publish@19c28f1ef146469e409470805ea4279d47c3d35c
with:
package: apps/cli
token: ${{ secrets.NPM_TOKEN }}
access: public
2 changes: 1 addition & 1 deletion .github/workflows/cli_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ jobs:
cache: pnpm
- run: pnpm install
- run: pnpm run build
- run: cd apps/cli
- run: pnpm run test
working-directory: apps/cli

0 comments on commit e4eb3e8

Please sign in to comment.